What you type is processed, but never shared with anyone.
HEX to RGB: how to use the Color Converter
The designer gave you #3366CC but you need hsl()? Three steps:
Enter the color. Type a color like #3366CC, rgb(51, 102, 204) or hsl(220, 60%, 50%) in the Color code box. Or pick one from the color picker with the Pick button next to it.
Take its equivalents. The HEX, RGB, HSL, HSV and CMYK equivalents come out right below. Take a code with the Copy next to each.
Look at the palette and contrast. Under Palette you see matching colors, and under Readability (WCAG contrast) how readable the color is on white and black backgrounds. Clicking a color in the palette copies its HEX code.
What is a color code?
A color code is how a color is written on computers. The same blue is written differently depending on where it's used:
HEX: the most common way on the web. Like #3366CC.
RGB: the 0-255 values of a screen's red, green and blue light.
HSL: hue, saturation, lightness. The easiest way to make a lighter or duller version of a color.
HSV: hue, saturation, value. The color pickers of many design programs use this.
CMYK: the ink colors used in print. The conversion here is a simple formula; in real print there'll be a difference depending on the color profile. For a job going to a print shop, use the value the print shop gives.
HEX to RGB, RGB to HSL and conversions in every direction are done on the same screen.
Which notations does it read?
HEX:#RGB, #RRGGBB, #RGBA, #RRGGBBAA (the # sign is optional)
RGB:rgb(255, 136, 0), rgba(255, 136, 0, 0.5), the new space-and-/ notation, percentage values
HSL:hsl(220, 60%, 50%), hsla(...), the deg unit
If there's an alpha (transparency) value, it's kept in the outputs too.
Color palette and contrast ratio
Under Palette you see 9 shades of your color from light to dark, its complementary color (directly opposite on the color wheel), analogous colors (±30°) and the triadic harmony (±120°). The calculation is done over HSL.
The contrast ratio is the brightness difference between text and background. Web accessibility rules (WCAG) ask for at least 4.5:1 for normal text (AA), 3:1 for large text and 7:1 for the highest level (AAA). When choosing a text color, this check makes sure the text is readable for everyone.
Who is a color converter for?
Web developers use it when switching between formats in CSS, designers when documenting brand colors, people making presentations when entering an RGB value in an office program, and students when learning color models. It's useful whenever you need to carry a color code from one program to another.
Common mistakes
Trusting the on-screen CMYK: for print, use the print shop's color profile.
Light gray text: it looks stylish but the contrast is usually too low.
The conversion happens in your browser. What you type is processed, but never shared with anyone.
Why doesn't the CMYK value match the print shop's?
A screen makes color with light, print with ink; a color profile conversion is needed between them. The conversion here is a simple formula without a profile.
Are small rounding differences normal?
Yes. Since HSL values are rounded, going back and forth with a color can leave a 1-2 unit difference in RGB.
How is HEX converted to RGB?
Type the HEX code in the box; the RGB equivalent comes out right below. To calculate by hand, convert each pair of digits from hexadecimal to decimal: 33 = 51.
What should the contrast ratio be?
At least 4.5:1 for normal text and at least 3:1 for large headings.
What does complementary color mean?
It's the color directly opposite on the color wheel; used together they create a strong contrast. The complement of blue is orange.
Can I use it on my phone?
Yes. Type the color code or pick from the color picker, and take the codes with Copy.
Can I convert transparent colors too?
Yes. Colors with an alpha value like #3366CC80 or rgba(51, 102, 204, 0.5) are read and the transparency is kept in all the outputs.