What is a colour converter?
The colour converter translates opaque sRGB colours between HEX, RGB and HSL, estimates CMYK without a printer profile and calculates contrast against white and black. WCAG badges use the unrounded contrast ratio: normal text needs 4.5:1 for AA or 7:1 for AAA, with lower thresholds for large text.
Features
- HEX, RGB and HSL input and output
- Approximate CMYK conversion
- Native colour picker
- Contrast versus white and black
- AA and AAA badges for normal and large text
How to use the colour converter
- Enter Colour value in HEX, RGB, HSL or percentage CMYK form.
- Alternatively use Colour picker.
- Copy a converted value.
- Read the contrast ratios and AA/AAA badges against white and black.
Worked example
#FF0000 gives rgb(255, 0, 0), hsl(0, 100%, 50%) and approximate cmyk(0%, 100%, 100%, 0%). Contrast is about 4.00:1 against white and 5.25:1 against black: red normal text passes AA against black, but fails AA against white.
Scope of the contrast check
Only opaque sRGB colours are supported. Alpha blending, background images and actual typography require a separate check. WCAG large text means at least 18 pt regular or 14 pt bold. CMYK is mathematical and approximate; use printer profiles for production. WCAG contrast requirements.
Frequently asked questions
Can I enter three-digit HEX?
Yes. #F00 expands to #FF0000. Six-digit HEX is supported with or without a leading hash.
Are alpha or named colours supported?
No. Use an opaque HEX, comma-separated RGB, HSL with percentage saturation and lightness, or percentage CMYK value.
Why is CMYK labelled approximate?
RGB-to-CMYK arithmetic lacks the printer, ink and paper profiles needed for colour-managed production. The displayed percentages are an estimate only.
Why can a rounded ratio show 4.50 and still fail?
Badges compare the full precision ratio with the threshold. Display rounding never turns a value below 4.5 into a pass.
Do these badges certify my whole page?
No. They check this colour paired with white or black. A full page needs checks of actual backgrounds, font sizes, states and other accessibility requirements.
Last updated 16 November 2026. Made by Criza Labs. Spotted a mistake? Tell us.