Color Picker and Converter

Pick a color or type it as HEX, RGB, HSL or by its English name, and instantly get every format ready to copy, along with its contrast on white and black. All in your browser.

🔒 What you type never leaves your device. Everything is calculated in your browser.

Formats

HEX
RGB
HSL
CMYK

Text contrast (WCAG)

White text on this color
Black text on this color

How to convert a color

  1. Click the color box to pick one, or type it in the text field.
  2. You can type it as HEX (#1e90ff), as rgb(), as hsl() or by its English name.
  3. See the color in the preview along with its HEX, RGB, HSL and CMYK equivalents.
  4. Copy the format you need and check the contrast with white or black text.

What it is for

Designers and developers often convert a color from one format to another: the HEX from a palette, the rgb() in a stylesheet, the HSL to build lighter or darker variants. This tool does it in one step.

It also calculates the color's contrast with white text and with black text, following the WCAG accessibility guidelines: 4.5:1 to meet level AA and 7:1 for level AAA with normal text.

CMYK is a simple conversion, useful as a reference; for professional printing you should use the color profile in your design software.

Things to keep in mind

Frequently asked questions

How do I convert HEX to RGB?

Type the HEX (for example #1e90ff) and the tool instantly shows the equivalent rgb(), along with the HSL and CMYK.

What is WCAG contrast?

It measures how readable text is on a background. A ratio of 4.5:1 meets level AA and 7:1 meets AAA, for normal text.

Does it accept colors with transparency?

Yes: you can type #rrggbbaa, rgba() or hsla() and they are shown with their transparency too.

Is anything sent to a server?

No. Everything is calculated in your browser.

Is it free?

Yes, it is free, requires no sign-up and works directly in your browser.