Free Online Color Converter & Contrast Checker
Pick or type a colour and get its HEX, RGB, HSL and CMYK values. See ten lighter tints of it, and check the contrast ratio against white and black text backgrounds.
How to Use Color Converter?
Pick or Type Color
Select a color from the visual picker or type your HEX, RGB, or HSL code directly.
Check Contrast & Palette
See the contrast ratio against white and black with AA and AAA pass or fail, and click any of the 10 lighter tints to switch to it.
Copy Formatted Code
Click "Copy" next to HEX, RGB, HSL, or CMYK to paste directly into your stylesheet.
Understanding Color Spaces (RGB, HSL, CMYK) & Web Accessibility
The same colour can be written in several ways. Web pages use sRGB values, written as HEX, RGB or HSL, and converting between them gives exactly the same colour. CMYK is different, because it is meant for print.
Key Color Models in Digital Design
- HEX (#RRGGBB): The standard compact hexadecimal notation used across HTML and CSS stylesheets.
- RGB (Red, Green, Blue): Additive color model representing screen light pixel intensities from 0 to 255.
- HSL (Hue, Saturation, Lightness): Cylindrical color model ideal for building intuitive design systems, tints, and dark mode variations.
- CMYK: Subtractive colour model used for ink printing. The values here are a simple mathematical conversion from RGB. Real printers use colour profiles, so printed colours can look different from the screen.
About the contrast check
The contrast ratio is worked out with the WCAG 2.1 formula. The tool compares your colour with pure white and pure black only, and the pass or fail badges are for normal-size text. To check a specific text and background pair, you need to enter both colours in a dedicated contrast checker.
Frequently Asked Questions
How does HEX to RGB and HSL conversion work?
A 6-character hexadecimal color (#RRGGBB) splits into red, green, and blue bytes (0-255). HSL converts these coordinates into cylindrical representations: Hue (0-360 degrees), Saturation (0-100%), and Lightness (0-100%).
What is WCAG 2.1 Color Contrast compliance?
The Web Content Accessibility Guidelines (WCAG) 2.1 ask for a contrast ratio of at least 4.5:1 between normal-size text and its background for Level AA, and 7:1 for Level AAA. Large text needs less (3:1 for AA). This tool checks the colour you pick against white and against black.
What is the difference between RGB and CMYK?
RGB is an additive model used for screens, which mix light. CMYK (cyan, magenta, yellow, key/black) is a subtractive model used for ink printing. The CMYK values here come from a simple formula, so a printer's own colour profile may give a slightly different result.