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
This color meets WCAG 2.1 AA standards for normal text (4.5:1) on at least one background.
Shades & Tints
Color Harmonies
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
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
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.
Convert each RGB value (0–255) to a 2-digit hexadecimal number and join them after a #. For example, rgb(255, 107, 53) becomes #FF6B35. This picker's RGB field is read-only, so to type RGB values and get the hex, use the Color Converter.
Click Eye Dropper, then click any pixel on your screen; press Escape to cancel. The picker jumps to that color and adds it to Recent Selections. It uses the browser's EyeDropper API, which works in desktop Chrome, Edge and Opera. Firefox, Safari and mobile browsers don't support it, and the tool shows an error message there.
HSL uses Lightness (0% = black, 100% = white, 50% = the pure hue at full saturation). HSV uses Value (0% = black, 100% at full saturation = the pure hue). CSS has an hsl() function, which is why this tool shows and copies HSL; the canvas itself is laid out as saturation and value.
A shade is a darker version of a color and a tint is a lighter one. The Shades & Tints strip keeps your color's hue and saturation and changes only its lightness, giving 10 steps toward near-black and 10 toward near-white, with the current color in the middle.
This picker compares your color with 148 CSS color keywords (including the grey spellings), measures the straight-line distance in RGB between them, and shows the closest name under the hex code. It's the nearest match, not always an exact one.
It calculates the contrast ratio of your color on white and on black and marks each one PASS (AA) at 4.5:1 or more, PASS (AAA) at 7:1 or more, or FAIL. These are the thresholds for normal-size text. To test text color against a specific background, use the Color Contrast Checker.
Resources
Related Tools
- Color Scheme Generator: Complementary, Triadic & Analogous Design Pick a base color and get 5 harmonious colors: analogous, monochromatic, complementary, triadic or tetradic. Preview them on a site, export CSS or JSON.
- Color Contrast Checker: WCAG AA/AAA & Color Blindness Design Check if text and background pass WCAG 2.2 AA and AAA, get the nearest passing text color and preview 4 types of color blindness. Free, in your browser.
- HEX to RGB Converter with HSL & CMYK Values Design Paste a HEX code and copy its RGB, HSL and CMYK values instantly, with 4 harmony colors, a contrast check against white and CSS palette export.
- Color Palette from Image: Extract HEX, RGB & HSL Codes Design Upload a photo or logo and extract 3 to 12 dominant colors as HEX, RGB and HSL. Export CSS variables, Tailwind, JSON or PNG. Nothing leaves your browser.
- CSS Box Shadow Generator: Tailwind, Neumorphism & Glass Design Create CSS box shadows with a live preview and ready-made presets, or switch to neumorphism and glassmorphism. Copy as CSS, a Tailwind class or a variable.