Hex Color Picker with Eyedropper: HEX, RGB & HSL Codes

Hex Color Picker with Eyedropper: HEX, RGB & HSL Codes

Pick a color or grab any pixel on screen with the eyedropper, then copy HEX, RGB or HSL. Includes CMYK, LAB, shades, harmonies and WCAG contrast.

Updated November 2026

Reviewed by Rafael Duarte

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

Pick on the canvas, type a hex code or grab a pixel from your screen

1. Click or drag on the canvas

Saturation runs left to right and brightness top to bottom. Set the hue on the Hue Spectrum bar below. Or click Eye Dropper to grab a color from anywhere on your screen (desktop Chrome, Edge or Opera).

2. Or type a hex code directly

Type or paste a 6-digit code in the Hex Code field and the picker jumps to it. A 3-digit shorthand like #F60 is expanded when you leave the field.

3. Copy and explore variations

Copy HEX, RGB or HSL with the button next to each field, or click any value under Technical Specifications to copy it. Then browse Shades & Tints and Color Harmonies below.

What this hex color picker does

Color codes, an eyedropper, shades, harmonies and a contrast check

HEX, RGB, HSL, CMYK and LAB

Every value updates as you move the picker: HEX, RGB and HSL in the fields below, plus CMYK, decimal, LAB, the nearest web-safe color and relative luminance. Only the hex field is editable; RGB and HSL are read-only.

Eye Dropper

Click Eye Dropper and pick any pixel on your screen, even outside the browser window. It relies on the EyeDropper API, available in desktop Chrome, Edge and Opera but not in Firefox, Safari or mobile browsers.

Shades and tints

10 darker and 10 lighter steps of the selected color, made by changing only its HSL lightness. Click any swatch to select it.

5 color harmonies

Complementary, analogous, triadic, split-complementary and tetradic. Click a harmony swatch to make it the current color.

Contrast on white and black

Shows the contrast ratio of the color against white and against black, with a PASS (AA) or PASS (AAA) badge. For any text and background pair, use the Color Contrast Checker.

Nearest CSS color name

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

100% in your browser

No sign-up and no install. Everything runs locally; recent selections and the saved palette (up to 20 colors) last until you close the page.

What you get from a hex code

Input
Result
#1A73E8 → RGB
26, 115, 232
#FF6B35 → HSL
16°, 100%, 60%
Shades from #3A86FF
10 steps from #3A86FF toward near-black

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

A quick first check of how a color reads on white and on black. For a specific text and background pair, switch to the Color Contrast Checker.

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 value gives a rough starting point for print. It's a straight math conversion with no ICC color profile, so confirm the final values with your printer.

Common mistakes

Mixing up HSL and HSV

Both start with hue, but their saturation and third axis are defined differently, so the numbers don't transfer between them. This tool shows HSL; 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 puts color codes, shades and tints, harmonies and a contrast check on white and black on one page, so you don't need a separate tool for each step.

The Eye Dropper button lets you sample a color straight from a screenshot, a design file or another app, then see its hex code, nearest CSS color name and variations right away (in desktop Chrome, Edge or Opera).

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)
In this tool
shown and copyable
used for the canvas, not displayed

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