Color Picker

New

Color Picker: HEX, RGB and HSL Converter

Pick a color and get its HEX, RGB and HSL codes. Check contrast against white and black, see lighter and darker shades, and find the complementary color. Free, runs in your browser.

Contrast (WCAG)

Shades and complement

How to use the Color Picker

  1. Click the color box to open your browser’s picker, or type a HEX, RGB or HSL value.
  2. All formats update together. Use Copy to take the one you need.
  3. Check the contrast boxes to see if white or black text is readable on your color.
  4. Click a shade to use it, or note the complementary color for a matching accent.

Frequently asked questions

How do I get the HEX code of a color?

Pick the color and read the HEX field. It is a # followed by six characters: two each for red, green and blue, so #3B82F6 is red 59, green 130, blue 246.

How do I convert HEX to RGB or HSL?

Type or paste the HEX code. The RGB and HSL values fill in at once, and you can copy either one as CSS.

What contrast ratio is good enough for text?

The Web Content Accessibility Guidelines (WCAG) ask for at least 4.5:1 for normal text and 3:1 for large text at level AA, and 7:1 and 4.5:1 at level AAA. The boxes above test your color against white and black text.

What is a complementary color?

It is the color opposite yours on the color wheel, found by moving the hue 180 degrees. Pairs like this give strong contrast in designs.

Can I pick a color from my screen?

In Chrome and Edge a Pick from screen button appears, using the browser’s eyedropper. Other browsers do not offer it, but the rest of the tool works everywhere.

Is anything uploaded?

No. Everything runs in your browser.

Everything runs in your browser. Nothing you enter is uploaded or stored by Nexatoolbox.