Color Picker and HEX, RGB, HSL Converter

Free online color picker: get HEX, RGB, HSL, HSV and CMYK codes instantly, convert between formats, check WCAG contrast and see shades, tints and harmonies.

Shades (darker)

Tints (lighter)

Color harmony

Complementary

Analogous

Triadic

Click a swatch to use it

Color codes

HEX

#1E90FF

RGB

rgb(30, 144, 255)

HSL

hsl(210, 100%, 56%)

HSV / HSB

hsv(210, 88%, 100%)

CMYK

cmyk(88%, 44%, 0%, 0%)

CSS variable

--color: #1E90FF;

Contrast (WCAG)
Sample text
On white3.24:1
AA: FailAA Large: PassAAA: Fail
Sample text
On black6.49:1
AA: PassAA Large: PassAAA: Fail

This color picker shows the HEX, RGB, HSL, HSV and CMYK codes of any color and converts between them as you type. Designers, developers and anyone editing a slide or a social post eventually need the same color written in another format: a HEX code from a brand guide turned into RGB for a video editor, or an HSL value for a CSS theme. This picker converts in every direction as you type. Paste a code into any field and the others update at once. Below the codes you get a ladder of darker shades and lighter tints, complementary, analogous and triadic matches, and the WCAG contrast ratio against white and black so you know if text on that color will be readable. Everything runs in your browser, nothing is sent anywhere.

How to use the color picker

  1. 1Click the large color square to open the picker, use "Pick from screen" to grab a color from anywhere on your display, or type a code you already have.
  2. 2Edit the HEX, RGB or HSL field directly. The other formats convert automatically.
  3. 3Press Copy next to the format you need, or click a shade, tint or harmony swatch to switch to that color.

HEX, RGB, HSL, HSV and CMYK: which format to use

HEX (#1E90FF) is the standard for websites, brand guides and most design tools. RGB (30, 144, 255) describes the same color as red, green and blue values from 0 to 255 and is common in video editors and code. HSL is the easiest to tweak by hand in CSS: change only the lightness to get a darker or lighter version of the same hue.

HSV, also called HSB, is what the color pickers in Photoshop, Figma and many apps show. CMYK (cyan, magenta, yellow, black) is the model used by printers, so use it as a starting point when sending artwork to print.

Shades, tints and color harmonies

Shades are your color mixed with black and tints are your color mixed with white. Together they give you a consistent palette for buttons, hover states, backgrounds and borders built from a single brand color.

The harmony swatches follow the color wheel: the complementary color sits opposite (180 degrees), analogous colors sit right next to it and triadic colors are spaced evenly at 120 degrees. Complementary pairs make strong contrast, analogous ones look calm and cohesive.

Using your colors in social posts and images

Once you have the HEX code of a brand color, you can reuse it everywhere. When you fit a photo into a square or story format with the social media image resizer, paste the HEX as the background color so the empty bars match your brand. To match a color from a photo, open the image on screen and use Pick from screen to grab it.

Frequently Asked Questions

How do I convert HEX to RGB?
A HEX code is three pairs of hexadecimal digits: red, green and blue. Each pair goes from 00 to FF, which is 0 to 255 in decimal. #1E90FF becomes rgb(30, 144, 255). Paste the HEX code in the field above and the RGB value appears immediately.
What is the difference between HSL and HSV?
Both describe hue as an angle from 0 to 360 degrees. In HSL, lightness 50% is the pure color and 100% is always white. In HSV (also called HSB), value 100% is the brightest version of the color, and white needs saturation 0%. CSS uses HSL; Photoshop and most design apps show HSB.
Is the CMYK value exact for printing?
It is a direct mathematical conversion, good for reference. Print shops use color profiles (such as FOGRA or GRACoL) that change the numbers depending on paper and ink, so confirm critical colors with your printer.
What contrast ratio do I need for readable text?
WCAG 2.1 asks for at least 4.5:1 for normal text and 3:1 for large text (about 24px, or 19px bold) to reach level AA. Level AAA asks for 7:1 and 4.5:1. The contrast box shows the ratio of your color against white and black.
Why does the screen color picker not appear on my browser?
Picking a color from anywhere on the screen uses the EyeDropper API, available in Chrome, Edge and Opera on desktop. In Safari, Firefox and on phones you can still use the color square or type the code.
How do I find the HEX code of a color in an image?
Open the image on your screen, then click Pick from screen in a desktop Chrome, Edge or Opera browser and click the pixel you want. The picker shows its HEX code along with RGB, HSL and the other formats, ready to copy.