100% local

Color Converter

Convert HEX, RGB, HSL and check contrast ratios.

Runs in your browser Works offline No uploads, no sign-up

Contrast on white / black

vs #FFFFFF1.25:1
vs #00000016.86:1
WCAG AA textPass (best surface)

How to use the Color Converter

Convert between color formats, preview swatches, and evaluate WCAG contrast for accessible UI work.

  1. 1Enter a HEX, RGB or HSL color, or pick one with the color picker.
  2. 2The other formats update instantly with a live swatch.
  3. 3Check the WCAG contrast ratio against white and black text before you ship.

Frequently asked questions

What contrast ratio do I need for accessibility?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text (24px, or 19px bold). AAA requires 7:1 and 4.5:1 respectively.

What is the difference between HSL and RGB?

RGB mixes red, green and blue light channels. HSL describes hue, saturation and lightness, which is easier to adjust by hand, for example to make a color 10% lighter.