Converters tool

Color Converter

Convert HEX, RGB, HSL, HWB and CMYK colours.

Free Runs in your browser

Contrast ratio (WCAG 2)

Aa On white
Aa On black

WCAG AA needs 4.5:1 for normal text and 3:1 for large text (24 px, or 18.66 px bold). AAA needs 7:1 and 4.5:1. CMYK values here are a simple formula without a printer profile, so printed colours can differ.

About this tool

Color Converter turns a colour into every common format for CSS, design apps and print. It also shows the WCAG contrast ratio on white and black, so you can tell if text in that colour will be readable.

How to use Color Converter

  1. Pick a colour or type any colour code.
  2. Copy the format you need.
  3. Check the contrast results.

Questions people ask

How do I convert HEX to RGB?

Split the six digits into three pairs and read each pair as a hex number. #3B82F6 is rgb(59, 130, 246).

What contrast ratio do I need?

WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 for normal text.

Is the CMYK value exact for print?

No. It uses the standard formula with no colour profile. Printers use profiles such as FOGRA or GRACoL, so ask your print shop for exact values.

More converters tools

See all 19 →
Esc