Type a color, pick one, or paste a code. Every format updates instantly.
Divide each channel by 255, find the largest and smallest values, and derive hue, saturation and lightness from them. For rgb(255, 107, 53) the result is hsl(16, 100%, 60%).
Use HSL when you want to build a palette: keep the hue, then vary saturation and lightness.
Enter a color in any common notation and the tool converts it to all the others. It accepts #3b82f6, 3b82f6, short HEX like #38f, rgb(59,130,246), hsl(217,91%,60%), hsv(217,76%,96%), cmyk(76,47,0,4) and basic color names such as coral. Use the picker for a visual choice, then press a copy button to put a value on your clipboard.
The address bar updates as you work (for example ?c=3b82f6), so you can bookmark a color or send the link to a teammate. Nothing is uploaded: all math runs in your browser.
| Format | Range | Typical use |
|---|---|---|
| HEX | #000000 to #FFFFFF | CSS, design tools, brand guides |
| RGB | 0 to 255 per channel | Screens, CSS, canvas, image code |
| HSL | H 0-360, S and L 0-100% | CSS themes, easy lighter/darker variants |
| HSV | H 0-360, S and V 0-100% | Color pickers, graphics software |
| CMYK | 0 to 100% per ink | Print preparation (approximate) |
Split the six digits into three pairs and read each pair as a base-16 number. For #3B82F6: 3B = 59, 82 = 130, F6 = 246.
Divide R, G, B by 255. Let max and min be the largest and smallest value, and d = max - min. Lightness L = (max + min) / 2. Saturation S = d / (1 - |2L - 1|), or 0 when d is 0. Hue depends on which channel is largest and is scaled to 0-360 degrees.
K = 1 - max(R, G, B) using 0-1 values. Then C = (1 - R - K) / (1 - K), M = (1 - G - K) / (1 - K), Y = (1 - B - K) / (1 - K). This is the simple screen formula; real print results depend on the ink profile.
Relative luminance L = 0.2126R + 0.7152G + 0.0722B after linearizing each channel. Ratio = (L1 + 0.05) / (L2 + 0.05), with L1 the lighter color. WCAG AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1.
| Name | HEX | RGB | HSL |
|---|---|---|---|
| Red | #FF0000 | 255, 0, 0 | 0, 100%, 50% |
| Lime | #00FF00 | 0, 255, 0 | 120, 100%, 50% |
| Blue | #0000FF | 0, 0, 255 | 240, 100%, 50% |
| Yellow | #FFFF00 | 255, 255, 0 | 60, 100%, 50% |
| Cyan | #00FFFF | 0, 255, 255 | 180, 100%, 50% |
| Magenta | #FF00FF | 255, 0, 255 | 300, 100%, 50% |
| Orange | #FFA500 | 255, 165, 0 | 39, 100%, 50% |
| Purple | #800080 | 128, 0, 128 | 300, 100%, 25% |
| Navy | #000080 | 0, 0, 128 | 240, 100%, 25% |
| Teal | #008080 | 0, 128, 128 | 180, 100%, 25% |
| Maroon | #800000 | 128, 0, 0 | 0, 100%, 25% |
| Olive | #808000 | 128, 128, 0 | 60, 100%, 25% |
| Gray | #808080 | 128, 128, 128 | 0, 0%, 50% |
| Silver | #C0C0C0 | 192, 192, 192 | 0, 0%, 75% |
| Black | #000000 | 0, 0, 0 | 0, 0%, 0% |
| White | #FFFFFF | 255, 255, 255 | 0, 0%, 100% |
Paste the HEX code into the box above. The RGB row shows the three channel values from 0 to 255.
Both describe hue and saturation. HSL uses lightness, where 50% is the pure color and 100% is white. HSV uses value, where 100% is the brightest form of the color. HSL is common in CSS; HSV is common in picker widgets.
No. It is a mathematical conversion from RGB. Printers use ink profiles, so always proof final colors with your print provider.
WCAG AA requires 4.5:1 for body text and 3:1 for large text (about 24px, or 19px bold). AAA requires 7:1 for body text.
No. The page has no backend and no tracking scripts. All conversions run locally in your browser.