Color Converter
- Free forever
- No sign-up
- Runs in your browser
Convert colours between HEX, RGB, HSL, HSV, CMYK and OKLCH, check text contrast, and get lighter and darker shades.
Contrast (WCAG)
Tints and shades
About Color Converter
Type a colour in almost any CSS format, or pick one, and get HEX, RGB, HSL, HSV, CMYK and OKLCH values with a copy button for each. Designers and developers use it to move colours between design tools, stylesheets and print briefs. The page also grades the WCAG contrast of white and black text on your colour, and offers four tints and four shades you can click to explore.
How to use Color Converter
- Type any colour into the Colour box: a hex code, rgb(), hsl(), a name like teal, or three numbers.
- Or click Pick to choose a colour with your device's colour picker.
- Copy the HEX, RGB, HSL, HSV, CMYK or OKLCH value you need with its Copy button.
- Check the contrast grades for white and black text, and click a tint or shade to use it.
How your data is handled
Colour conversions run in your browser, with no extra downloads, and the colours you enter aren't uploaded, logged or stored anywhere.
Limits and accuracy
- Colours are read as 8-bit sRGB, so wide-gamut colours such as display-p3 or vivid OKLCH values are clipped.
- Contrast is worked out as if the colour were solid, so test semi-transparent colours on their real background.
- Values are rounded to whole numbers, so converting back and forth can shift a colour by one step.
Questions and answers
What do AA and AAA contrast mean?
They're WCAG accessibility levels. AA needs a contrast ratio of at least 4.5:1 for normal text, and AAA needs 7:1. A ratio of 3:1 passes for large text only.
Is the CMYK value exact for printing?
It's a standard mathematical conversion, which makes a good starting point. Printers use colour profiles for specific inks and paper, so check important brand colours with your print shop or a printed proof.
Can I pick a colour from an image?
Not on this page. Use Image Color Picker to click any pixel in a photo or screenshot and get its codes, then paste the HEX here for contrast checks, tints and shades.
What is OKLCH?
It's a newer CSS colour format based on lightness, chroma and hue, designed to match how people see colour. Changing only its lightness keeps the hue steady, which makes it handy for building colour scales. Current browsers support it.
Do I need to sign up?
No. HEX to RGB Color Converter is free with no sign-up, no login and no daily limit, and there's nothing to install. It works on a phone as well as a PC.
Is my text sent to a server?
No. HEX to RGB Color Converter runs in your browser, so what you paste stays on your device. That makes it safe for passwords, tokens, customer data and anything else private.
Does it do HEX to RGBA with opacity?
Yes. Enter the HEX code and an alpha value and you get rgba(), plus HSL and the nearest CSS colour name, in both directions.