Hex Color Picker

Hex Color Picker

Free hex color picker — select any color visually and get HEX, RGB, HSL, HSV, and CMYK codes. Generate shades, tints, and color harmonies. No signup required.

Updated May 2026

Hue Spectrum
#197FE6 dodgerblue
{} Technical Specifications
CMYK
Decimal
LAB
Web Safe
Luminance
WCAG Contrast Check
On White 4.02:1 FAIL
On Black 5.22:1 PASS (AA)

This color meets WCAG 2.1 AA standards for normal text (4.5:1) on at least one background.

Hex Code
RGB Format
HSL Format

Shades & Tints

Color Harmonies

#197FE6 Base
#E67F19

How to use the hex color picker

Visual canvas, five formats updated live

1. Click or drag on the canvas

Saturation runs along the X axis, brightness along the Y axis — fine-tune the hue on the rainbow bar below.

2. Or type a hex code directly

Paste any 6-digit code and the picker jumps straight to that color.

3. Copy and explore variations

Grab HEX, RGB, or HSL with one click, then browse shades, tints, and harmonies in the panels below.

What this hex color picker does

Five formats, shades, tints, and a built-in contrast checker

HEX, RGB, HSL, HSV, and CMYK

All five formats update simultaneously in real time as you move the picker.

Shades and tints

10 darker steps and 10 lighter steps generated automatically from your selected color.

5 color harmonies

Complementary, analogous, triadic, split-complementary, and tetradic — all one click away.

WCAG contrast checker

Shows whether your color meets the 4.5:1 ratio required for AA-level text contrast.

Nearest CSS color name

Calculates the Euclidean RGB distance to suggest the closest matching CSS keyword.

100% in your browser

No sign-up, no installs — everything runs locally on your device.

Conversion examples

Conversion
Result
#1A73E8 → RGB
R=26, G=115, B=232
rgb(255, 107, 53) → HEX
#FF6B35
Shades from #3A86FF
10 steps from near-black to the pure hue

When you'll reach for this tool

The scenarios that come up most often

Web development and UI work

Copy HEX or RGB straight into CSS, a Tailwind config, or your design tokens.

Accessibility audits

The WCAG checker flags contrast problems before they ship to production.

Building a design system

Use the shades and tints panel to build out a full color ramp from a single base hue.

Prepping colors for print

The CMYK values show how a screen color actually translates to ink.

Common mistakes

Mixing up HSL and HSV

Both share hue and saturation, but the third axis differs — see the comparison below.

Treating the nearest CSS name as an exact match

It's the closest keyword by RGB distance, not necessarily an identical color.

Expecting CMYK to reproduce a screen color exactly

Some vivid blues and greens fall outside the printable color gamut.

Why use this hex color picker

It combines format conversion, shade/tint generation, harmony exploration, and WCAG contrast checking on a single page — most color pickers online only convert between formats.

It shows HSL and HSV side by side, so you don't have to guess which one CSS expects versus what Photoshop uses internally.

HSL vs. HSV

Same first two axes, different third axis

HSL
HSV
Third axis
Lightness
Value/Brightness
0% on third axis
black
black
100% on third axis
white
pure color (at max saturation)
Used by
CSS
Photoshop and most design tools

Frequently asked questions

A hex code is the 6-digit hexadecimal representation of an RGB color, written as #RRGGBB. Each pair of digits represents one channel — RR for red, GG for green, BB for blue — on a scale from 00 to FF.

Resources

Related Tools