Pick a colour visually, from the screen or by typing it, and copy it in ten formats with contrast, the nearest name and colour blindness previews.
Initializing in your browser…
Convert colours between HEX, RGB, HSL, OKLCH, Lab and five more formats, check WCAG contrast, and preview colour-blind vision.
Extract the main colours of a photo as a palette with hex, RGB and HSL codes and their share of the picture, and export it as CSS, SCSS, Tailwind, JSON, CSV or GIMP.
Design linear, radial and conic CSS gradients with live preview, vivid colour-space blending, and CSS or Tailwind code to copy.
A brand guide gives you only #3B82F6, and your design tokens need the other notations, plus a decision on whether the button label on it should be black or white.
Typed
#3B82F6
What the picker shows
HEX #3B82F6 exact RGB rgb(59, 130, 246) exact HSL hsl(217.2, 91.2%, 59.8%) exact HWB hwb(217.219 23.137% 3.529%) exact Lab lab(54.619 8.765 -65.79) exact LCH lch(54.619 66.371 277.589) exact OKLab oklab(0.62308 -0.03325 -0.18505) exact OKLCH oklch(0.62308 0.18801 259.815) exact HSV hsv(217.2, 76%, 96.5%) exact CMYK cmyk(76%, 47.2%, 0%, 3.5%) exact On white 3.68:1 On black 5.71:1 Best text colour on it: #000000 at 5.71:1 Relative luminance 0.2355 Nearest CSS name: dodgerblue, dE2000 5.69
Every value reads back as exactly #3B82F6, so any of them can go into your tokens. The HSL line keeps one decimal because the rounded version, hsl(217, 91%, 60%), is a slightly different colour (#3C83F6). For the label, white text measures only 3.68:1 on this blue, below the 4.5:1 WCAG AA needs for normal text, while black measures 5.71:1 and passes, so the picker draws the label in black. The nearest named colour, dodgerblue, is a visible 5.69 units away, so the hex value is the one to keep.
Pick any colour from a saturation and brightness square, a hue bar, a preset or the screen itself, then copy it as HEX, RGB, HSL, HWB, Lab, LCH, OKLab, OKLCH, HSV or CMYK. The picker also shows its contrast against white and black, the best text colour to put on it, its nearest CSS colour name and how it looks with colour blindness.
Four ways to pick. Drag on the square to set saturation (left to right) and brightness (top to bottom), and move the hue bar to change the colour family; both work by mouse, touch, and arrow keys. Choose one of eighteen preset swatches, press Random, or type or paste a colour in any notation, including names such as rebeccapurple and modern forms such as oklch(0.62 0.19 260). In Chrome, Edge and Opera, From screen opens the browser's eyedropper so you can take a colour from anywhere on your screen.
Every notation, exact. The colour is shown in ten notations, each with its own copy button. A rounded value can quietly be a different colour: hsl(217, 91%, 60%) looks like #3B82F6 but comes back as #3C83F6. So HSL is printed to one decimal, and every notation is read back and compared with the original; the badge beside it says exact when it returns the same 8-bit colour. Lab and LCH follow the CSS Color 4 definition, which uses the D50 white point that browsers use, so the values paste into a stylesheet as the same colour.
Contrast for text. The contrast panel gives the ratio of the colour against white and against black, the WCAG relative luminance, and whether it passes AA and AAA as text on white. The label on the big swatch is drawn in whichever of black or white has more contrast, chosen by measuring rather than by a brightness rule of thumb, which picks the weaker label for some blues.
Names and colour vision. The nearest of the 148 CSS colour names is found by perceived difference (CIEDE2000), with a note on how close it is. Under How it looks with colour blindness, the colour is simulated for protanopia, deuteranopia, tritanopia and achromatopsia, with how far each shifts, which helps when a colour has to stay distinguishable for everyone.
Saved colours and sharing. Save keeps the current colour in a row of swatches stored in your browser, so they are still there next time; press Saved on a selected colour to remove it. The current colour is part of the page address, so Share or a bookmark brings it back. Nothing is uploaded.
Paste #3B82F6 and copy oklch(0.62308 0.18801 259.815) and hsl(217.2, 91.2%, 59.8%) straight into your tokens file; both read back as exactly the same colour.
For #3B82F6 the contrast panel shows white at 3.68:1 (fails AA for normal text) and black at 5.71:1 (passes), so the swatch label turns black.
Press From screen in Chrome or Edge, click any pixel, and the picker loads that exact colour with all its notations.
Whole-number HSL cannot describe most sRGB colours exactly; rounding to integers moves a colour by up to a few levels. One decimal place is enough to return the exact colour, which the exact badge confirms.
Both describe colour the way people perceive it. OKLab is newer and keeps hue more consistent as colours get lighter or darker, which makes it, and OKLCH, the better choice for building colour scales in CSS.
It uses the browser's EyeDropper feature, which Chrome, Edge and Opera support and Safari and Firefox currently do not.
It compares the brightness of two colours, from 1:1 (identical) to 21:1 (black on white). WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text.
No. It is a simple conversion from screen colour. Accurate print colours depend on the paper, ink and printer profile, so use your printer's colour settings for final artwork.
In your browser's local storage on this device. They stay until you remove them or clear your browser data, and they are not sent anywhere.
This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.