How to use
- Click the colour box to pick a colour, or type a code such as #F5B000, rgb(245, 176, 0) or a colour name like "teal".
- All the formats update instantly.
- Click any value to copy it.
- The last row tells you whether black or white text is easier to read on this colour.
How it works
HEX, RGB, HSL and HSV describe the same screen colour in different ways. CMYK is calculated with a simple formula without a printer profile, so ask your printer for exact values.
Frequently asked questions
What is the difference between HEX and RGB?
Both describe the amount of red, green and blue. HEX writes them in base 16 (#F5B000), RGB in normal numbers (245, 176, 0).
Which format should I use in CSS?
Any of them work in all modern browsers. HEX is shortest; HSL is easiest to adjust by hand (change the lightness to make a colour darker or lighter).
Why is CMYK only approximate?
Printed colours depend on the paper, ink and printer. Exact CMYK values need the printer's colour profile.