rgb(59, 130, 246)hsl(217, 91%, 60%)What Is a Color Picker?
A color picker is an interactive tool that lets you visually select a colour and read back its numeric representation in standard formats — HEX, RGB, and HSL. Designers and developers use one every day to grab a brand colour from a mockup, copy a CSS hex code into a stylesheet, match a colour against a screenshot, or build a palette around a chosen base shade. Picking a colour visually is far faster than guessing hex values — you see exactly what you'll get before you copy it.
Color Picker Online — What This Tool Does
This free online color picker opens your device's native colour-selection control so you can click anywhere in a gradient to grab a shade. It instantly returns the equivalent HEX, RGB, and HSL values with one-click copy. You can also type a known HEX or RGB value to jump straight to that colour. No account, no install, runs entirely in your browser.
How to Pick a Color
- Click the large preview box to open your operating system's native colour picker (gradient picker on macOS / Windows / Linux).
- Drag the cursor across the gradient to find the perfect shade.
- Alternatively, type a HEX value into the HEX input — e.g.
#28396C— to jump directly to that colour. - Or set individual R, G, and B values (0–255) to dial in a precise channel mix.
- The preview box and all three output formats update live as you change any input.
- Click the Copy button next to HEX, RGB, or HSL to copy that value to your clipboard.
HEX, RGB, and HSL — When to Use Each Format
- HEX — the most common format in CSS, design tools, and brand guides. Six hexadecimal digits represent the red, green, and blue channels (
#RRGGBB). Use HEX when sharing colours with designers or pasting into a stylesheet. - RGB — three integers from 0 to 255 representing red, green, and blue. Use
rgb(40, 57, 108)when you need to manipulate channels in JavaScript, animate one channel, or interpolate between two colours. - HSL — Hue (0–360°), Saturation (0–100%), Lightness (0–100%). The most intuitive format for adjusting colours programmatically: increment Hue to rotate around the colour wheel, drop Lightness to create a shade, or zero Saturation to get a grey.
- HEX vs RGB — these are exactly the same colour expressed differently.
#28396Cis identical torgb(40, 57, 108). HEX is more compact; RGB is easier to read and edit by channel.
Common Use Cases
- Match a colour from a screenshot — open the picker and visually fine-tune until you match the source.
- Convert HEX to RGB or HSL — paste any HEX value and copy the equivalent RGB or HSL instantly.
- Build a brand palette — pick a base colour, then use our Color Scale Generator to derive tints and shades.
- Check accessibility — copy a HEX value into our Contrast Checker to verify it meets WCAG AA/AAA against another colour.
- Design system tokens — sample neighbouring shades to populate a CSS custom-property palette.
Tips & Tricks
- 3-digit HEX shortcut —
#F03is shorthand for#FF0033. Useful for memorable brand colours. - HSL for theme generation — to produce a consistent palette, keep Hue fixed and vary Saturation and Lightness. Designers call this an "HSL family".
- Eyedropper extension — most browsers have a built-in eyedropper. On Chrome, run
document.body.style.backgroundin DevTools after using the dropper to capture the colour, then paste here. - OKLCH and modern colour — CSS now supports OKLCH and Display-P3 colours for wide-gamut screens. For everyday sRGB work, HEX/RGB/HSL remain the standard.
- Colour blindness check — pair this tool with the Contrast Checker before finalising any UI palette.
HEX Colour Code Format
A HEX colour code is a 6-digit hexadecimal number prefixed with #. The first two digits encode the red channel (00–FF), the next two encode green, and the last two encode blue. #000000 is pure black, #FFFFFF is pure white, and #FF0000 is pure red. Eight-digit HEX codes add an alpha (transparency) channel as the last two digits — e.g. #28396C80 is the navy colour at 50% transparency.
Related Tools
- HEX to RGB Converter — convert any HEX code to its RGB triplet
- RGB to HEX Converter — convert RGB values back to a HEX code
- Color Scale Generator — derive tints and shades from a base colour
- Contrast Checker — verify WCAG AA/AAA contrast between two colours
- CSS Gradient Generator — build linear and radial CSS gradients from picked colours
Is My Data Sent to a Server?
No. The colour picker uses your browser's native <input type="color"> element and converts between HEX, RGB, and HSL using small JavaScript routines that run entirely on your device. No colour value is ever transmitted, logged, or stored on our servers.