Free · no sign-up · updated

No. 19 · PDF, image, text and code

Colour converter and contrast checker

Paste a colour or use the picker to read its HEX, RGB and HSL forms.

HEX, comma-separated RGB, HSL with percentages, or approximate CMYK with percentages. Opaque sRGB only.

CMYK is an approximate mathematical conversion without a printer profile. Contrast badges cover opaque text on white or black only. AA normal text: 4.5:1; AAA: 7:1. Large text: AA 3:1, AAA 4.5:1.

HEX

#FF0000

RGB

rgb(255, 0, 0)

HSL

hsl(0, 100%, 50%)

CMYK (approximate)

cmyk(0%, 100%, 100%, 0%)

Against white: 4.00:1

AA normal: FailAAA normal: FailAA large: PassAAA large: Fail

Against black: 5.25:1

AA normal: PassAAA normal: FailAA large: PassAAA large: Pass

Inspect approximate CMYK values and see how opaque text contrasts with white and black.

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

  1. Enter Colour value in HEX, RGB, HSL or percentage CMYK form.
  2. Alternatively use Colour picker.
  3. Copy a converted value.
  4. Read the contrast ratios and AA/AAA badges against white and black.
Full guide · 5 min read · examples and common mistakes How to Convert Colours and Check Text Contrast

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.

PDF & image

Image Resize and Crop

Resize images by pixels or percentage, crop with a movable box and export JPG, PNG or WebP.

PDF & image

Image Compressor

Compress and resize JPG, PNG and WebP images in your browser for websites, upload forms, email and WhatsApp.

QR codes

QR Code Generator

Make a custom QR code with your logo, colours, dot style and frame for links, Wi-Fi, UPI, WhatsApp, vCards and events.

Made by Criza Labs

Need a custom tool for your team or customers?

Criza Labs builds tools like this into websites, billing systems and internal apps: with your branding, your data and your workflow. Fixed scope, fixed price, and you own the code.