Skip to content

Color Picker & Converter

Pick a color, convert it between HEX, RGB and HSL, find its complement and check whether text in that color is readable.

Runs entirely in your browser. Nothing is uploaded.

#2563EB

Complementary

#EBAC25

rgb(37, 99, 235) · hsl(221, 83.2%, 53.3%)

Contrast checker

Large text sample

Normal body text sample for readability.

4.94:1

AA normal Pass
AA large Pass
AAA normal Fail
AAA large Pass

Step by step

How to use the Color Picker & Converter

  1. 1

    Choose a color with the visual picker or type a HEX, RGB or HSL value.

  2. 2

    All formats update together with a live preview.

  3. 3

    See the complementary color and copy any value.

  4. 4

    Check contrast against a background color for WCAG compliance.

What it does well

Two-way conversion

Edit HEX, RGB or HSL directly; every other format updates instantly.

Complementary color

The hue opposite on the color wheel, with a one-click swap.

WCAG contrast checker

Contrast ratio with AA and AAA results for normal and large text.

Copy-ready values

Each format copies in standard CSS syntax.

Who uses it

Designers
Translate brand colors between design tools and code.
Developers
Convert values for CSS and check accessibility before shipping.
Accessibility reviewers
Verify text and background pairs meet WCAG 2.2.

HEX, RGB and HSL explained

HEX and RGB describe the same thing: amounts of red, green and blue from 0 to 255. HEX writes them as three pairs of hexadecimal digits, so rgb(37, 99, 235) is #2563EB. HSL describes color the way people think about it: hue as an angle on the color wheel, saturation as intensity and lightness from black to white. HSL makes it easy to create lighter or darker variations of a color by changing one number.

Contrast ratios and accessibility

WCAG measures contrast using relative luminance, producing a ratio from 1:1 (no contrast) to 21:1 (black on white). Level AA requires at least 4.5:1 for normal text and 3:1 for large text, which is 24 px regular or about 18.7 px bold. Level AAA requires 7:1 and 4.5:1. Meeting these ratios helps people with low vision and anyone reading a screen in bright sunlight. Contrast is only one part of accessibility; never rely on color alone to convey meaning.

Frequently asked questions

Does it support transparency?

This tool works with opaque colors. Alpha values are not included in conversions or contrast checks.

Why does HSL to HEX sometimes change slightly?

HEX stores whole numbers from 0 to 255, so converting from decimal HSL rounds to the nearest value.

Which contrast level should I aim for?

AA is the common legal and industry target. Aim for AAA for body text when possible.

Related tools