Skip to content
Free tool

Color Picker – Color Picker & Color Code Converter

The Color Picker is an online color picker: choose a color and convert it live between HEX, RGB, HSL, HSV, and CMYK, with the closest CSS color name and WCAG contrast against black and white. Free, no sign-up required – it runs entirely in your browser, with no uploads.

Built by Justin Schuessler

Colors picked? Take your site online with fast, reliable web hosting.

springgreen (similar)
100%

Result

#18e888

rgba(24, 232, 136, 1)
hsla(152.3, 81.9%, 50.2%, 1)

WCAG contrast ratio

against Black

12.94:1

AAA

against White

1.62:1

Insufficient

AAA = at least 7:1 (best readability), AA = at least 4.5:1 (WCAG standard for normal text), AA (large text) = at least 3:1 (sufficient only for large/bold text).

Need custom foreground and background colors instead of just black and white? Use the Contrast Checker

Continue with this color: Generate color scheme · View in Color Blindness Simulator

Runs entirely in your browser—nothing is sent to a server, stored, or logged.

How it works

How to choose a color and copy its code

Six steps from your first color to a copied color code – no account or download needed.

Step 1

Open color picker

Click the colored field next to “Closest CSS color:”. The color picker opens with a saturation and brightness square and a hue slider.

Step 2

Choose color

Drag within the square and adjust the hue slider until the color looks right. For a random starting point, click “Random color”.

Step 3

Or enter a value

Alternatively, type or paste an existing value into any of the HEX, RGB, HSL, HSV, or CMYK fields, such as #18e888 or 24, 232, 136. The other formats update live.

Step 4

Set opacity

If you need transparency, set the opacity (alpha) between 0 and 100% with the slider. The rgba() and hsla() values in the result reflect your setting.

Step 5

Check result

The result shows the HEX code, with rgba() and hsla() below it. You'll also see the closest CSS color name and the WCAG contrast ratio against black and white.

Step 6

Copy or keep working

Use the copy button next to the value you want. The page URL contains the current color, so you can share it by link. Use the links below the tool to open the same color in the Contrast Checker, Color Scheme Generator, or Color Blindness Simulator.

Example

Convert RGB to HEX – and HEX to RGB

A HEX color code contains the same three values as RGB, but in hexadecimal: two digits each for red, green, and blue, from 00 to ff (0 to 255).

The tool's starting color is #18e888. Split into pairs, that's 18, e8, and 88, or 24, 232, and 136 in decimal – giving you rgb(24, 232, 136). To convert RGB to HEX, reverse the process: each value from 0 to 255 becomes a two-digit hex pair.

Here's what the Color Picker shows for this color:

All values of the starting color in the Color Picker
HEX#18e888
RGBrgb(24, 232, 136)
HSLhsl(152.3, 81.9%, 50.2%)
HSVhsv(152.3, 89.7%, 91.0%)
CMYKcmyk(90%, 0%, 41%, 9%)
Closest CSS colorspringgreen (similar)
Contrast against black12.94:1, AAA
Contrast against white1.62:1, Insufficient

Just enter 24, 232, 136 or rgb(24, 232, 136) in the RGB field, and the HEX field immediately shows #18e888. It works the other way around too: enter HEX, and RGB, HSL, HSV, and CMYK update live.

Features

Convert color codes: What the Color Picker shows

You can edit the HEX, RGB, HSL, HSV, and CMYK fields as text. As soon as a value is valid, the Color Picker converts the other formats live.

HEX color code

The usual notation in CSS and HTML, e.g. #18e888. The HEX field accepts 3-, 4-, 6-, and 8-digit values with or without #. Values with 4 or 8 digits include an alpha channel. The result shows a six-digit HEX code.

RGB

Three values from 0 to 255 for red, green, and blue, matching how a screen mixes light. Enter them as 24, 232, 136 or rgb(24, 232, 136), or add a fourth value for opacity using rgba().

HSL

Hue in degrees, saturation and lightness in percent. Useful for lightening or darkening a color in CSS. The tool displays HSL to one decimal place and also accepts hsla() with alpha.

HSV

Hue, saturation, and value – the model behind the Color Picker's square. The field also accepts hsb() notation, since HSB and HSV mean the same thing.

CMYK

Cyan, magenta, yellow and black for printing. The conversion is a simplified approximation without a color profile, rounded to whole percentages: useful as a guide, but no substitute for a print proof.

Transparency (alpha)

Set opacity from 0 to 100% with the slider. The result also shows the color as rgba() and hsla(), each with its own copy button.

Closest CSS color name

The tool compares your color with all named CSS colors, such as tomato or steelblue, and shows the closest name. If it isn't an exact match, “similar” appears after it.

WCAG contrast

For each color, you'll see its contrast ratio against black and white, rated AAA, AA, AA (large text), or “Insufficient”. This helps you see which text color remains readable on your color.

Share a color by link

The page URL automatically includes the current color as a ?color= parameter. Anyone who opens the link sees the same color.

Want to pick a color from a photo or screenshot? This Color Picker doesn't read images. Go to Image Color Picker

Discover more

More Image & Design tools

Pairs well with the Color Picker—also free and entirely browser-based.

FAQ

Frequently asked questions about the Color Picker

Quick answers about color codes, color models, accessibility, and this tool.

Yes, the Color Picker is free and requires no sign-up. All conversions happen directly in your browser: no uploads, logging, or server requests. Only the page URL includes the current color as ?color=, so you can share it by link or bookmark it.

Click the colored field next to “Closest CSS color:”, choose saturation and brightness in the square, then set the hue below it. The HEX code appears at the top of the result and has a copy button. If you already know the color as RGB, HSL, HSV, or CMYK, enter the value in the corresponding field. To pick a color from a photo or screenshot, use the Image Color Picker; this tool doesn't read images. Go to Image Color Picker

Type or paste the value into the RGB field, such as 24, 232, 136 or rgb(24, 232, 136). The HEX field immediately shows #18e888, while HSL, HSV, and CMYK update too. To go the other way, enter the HEX code with or without # in the HEX field. Both formats describe the same screen color: HEX writes the three RGB values from 0 to 255 as hexadecimal pairs from 00 to ff.

RGB describes a color using the red, green, and blue light mixed by a screen. HSL (hue/saturation/lightness) and HSV (hue/saturation/value) are two different conversions of the same RGB value that are more intuitive for people. HSL is useful for lightening or darkening a color; HSV is useful for mixing colors using a hue, saturation, and brightness palette. CMYK (cyan/magenta/yellow/black), by contrast, describes ink or toner mixing used in printing, not light mixing.

The CMYK value is a simplified mathematical approximation without a color profile, rounded to whole percentages. It helps you assess a screen color for printing but doesn't replace a print proof using your print provider's profile. You can enter CMYK as 0%, 61%, 72%, 0% or cmyk(0%, 61%, 72%, 0%).

Yes. Set the opacity from 0 to 100% with the slider, and the result shows the color as rgba() and hsla() for copying. If you enter a value with alpha, such as a 4- or 8-digit HEX code (#rrggbbaa), rgba(), or hsla(), the slider adopts that opacity when you leave the field. The HEX code in the result remains six digits long.

It measures how well two colors, such as text and background, stand out from each other, on a scale from 1:1 to 21:1. The tool's ratings are AAA from 7:1, AA from 4.5:1 for normal text, and AA (large text) from 3:1 for large or bold text. The Color Picker shows the ratio of your color against black and white. For any foreground and background colors, use the Contrast Checker. Go to Contrast Checker

Next to the color field, the tool shows the closest CSS color. It calculates the Euclidean distance between your color and every named CSS color in RGB space and displays the closest match, such as tomato for #ff6347. If it isn't an exact match, “similar” appears after the name. You can copy the name and use it in CSS instead of the HEX code, though a “similar” match is only an approximation.

Any more questions?

Contact Support
Building something of your own?

Your frontend project needs a reliable server behind it

A ZAP-Hosting VPS reliably puts your application or project online.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all image and design tools