Colour Converter
Convert between HEX, RGB, HSL and CMYK with contrast checks.
Runs entirely in your browser — nothing is uploaded.
Shades
On white
5.17:1 passes AA
On black
4.06:1 fails AA for body text
About the Colour Converter
The Freemium.Tools colour converter translates a colour between HEX, RGB, HSL and CMYK, generates a shade scale and checks contrast against white and black.
Design tools, CSS, print specs and brand guidelines all speak different colour dialects, and converting by hand invites mistakes.
Enter a colour in any common notation and get every other notation, a ready-to-paste CSS variable, a nine-step shade ramp and a WCAG contrast reading.
How to use it
- 1Enter a colour. Type a HEX, RGB or HSL value, or use the colour picker.
- 2Copy the format you need. Tap any row to copy HEX, RGB, HSL, CMYK or a CSS variable.
- 3Check contrast. See the contrast ratio against white and black before using it for text.
Frequently asked questions
How do I convert HEX to RGB?
Each pair of hex digits is one channel read as a number from 0 to 255, so #2563EB is rgb(37, 99, 235). Paste the HEX above and the RGB value appears instantly.
What contrast ratio do I need for accessibility?
WCAG AA requires 4.5:1 for normal body text and 3:1 for large text. AAA asks for 7:1. The tool shows the ratio against both white and black.
Why does CMYK look different from my screen colour?
CMYK is a print model with a smaller gamut than screen RGB, so vivid screen colours have no exact ink equivalent. Treat the CMYK values as a starting point and proof before printing.
What is HSL useful for?
HSL separates hue, saturation and lightness, which makes it easy to build consistent tints and shades by changing only the lightness.

