Designer

Color Picker

Pick any color and instantly get HEX, RGB, HSL, HSV, and CMYK codes plus the nearest color name.

Designer

Why Use the Color Picker?

This free online color picker lets you choose any shade with your browser's native picker, or type a starting value, and instantly see it as HEX, RGB, HSL, HSV and CMYK. A large preview swatch shows the color at full size, while the nearest CSS color name gives it a human-friendly label. Every code has its own Copy button, including a ready-made CSS custom property. It suits designers matching a mockup, developers writing stylesheets and anyone who needs the exact code behind a color.

How to Use the Color Picker

  1. Click the color swatch to open your browser's color picker, then drag through the hue and shade area until the large preview looks right.
  2. If you already have a starting point, type it into the text box instead: a HEX code such as #3A86FF, an rgb() or hsl() value, or a CSS name like coral.
  3. Check the large preview swatch and the nearest CSS color name to confirm you have landed on the color you meant.
  4. Press Copy next to the format you need, whether HEX, RGB, HSL, HSV, CMYK or the CSS custom property, and paste it into your design file or stylesheet.

Best For

  • Grabbing the exact HEX code for a brand color before adding it to a style guide or design handoff.
  • Reading HSL values so you can create lighter and darker variations by changing only the lightness.
  • Getting approximate CMYK numbers to share with a printer alongside your on-screen color codes.
  • Generating a CSS custom property line to drop straight into the :root block of a theme file.

Pro Tip

Treat the CMYK output as a starting point rather than a print specification. CMYK converted from screen RGB is a mathematical approximation, and the printed result depends on paper, ink and the printer's color profile; many bright screen colors simply cannot be reproduced with process ink. For brand-critical print work, pick the screen color here, then ask your printer for a proof or a matched spot color before a large run.

FAQ

Color Picker FAQ

How do I find the HEX code of a color?

Choose the color with the picker, or type any value you know such as rgb(58, 134, 255), and the HEX output updates immediately. A HEX code is just the red, green and blue channels written as two-digit base-16 numbers, so #3A86FF means red 58, green 134 and blue 255. Press Copy to put it on your clipboard.

What is the difference between HSL and HSV?

Both describe a color by a hue from 0 to 360 degrees plus two percentages, but they treat brightness differently. In HSL, 100% lightness is always white and a fully saturated pure hue sits at 50% lightness. In HSV, also called HSB, a pure hue is 100% saturation and 100% value, and white is 0% saturation at 100% value. CSS supports hsl() directly, while HSV is the model many design app pickers use.

What is a CSS custom property for a color?

A CSS custom property, often called a CSS variable, stores a value under a name that starts with two dashes, for example --brand-color: #3a86ff; inside a :root rule. You then use it anywhere with var(--brand-color), so changing the color in one place updates the whole site. This picker writes that line for you so you can paste it straight into your stylesheet.

Why does the same color look different on another screen?

Screens differ in calibration, brightness and color gamut, so the same HEX value can look slightly warmer, cooler or more saturated from one device to the next. The code itself does not change; only the display does. For consistent results, compare important colors on more than one device and keep your own monitor calibrated.

Learn more

Guides for the Color Picker

HTML Color Names: A Practical Guide to All 148 CSS Named Colors

A practical guide to HTML color names: the 16 originals, all 148 CSS named colors, gray vs grey, aqua vs cyan, and when to use names or design tokens.

Read Guide

RGB vs CMYK: Why Your Colors Look Different in Print

RGB vs CMYK explained: why screen colors shift in print, what gamut means, why quick RGB to CMYK formulas are only estimates, and a print-safe color workflow.

Read Guide
Copied