Color Picker
Pick any color from your screen with the EyeDropper API and instantly see hex, RGB, HSL, HSV, HWB, CMYK, LCH, oklch, display-P3, and more — all one-click to copy.
FAQ
What is the EyeDropper API?
The EyeDropper API (Chrome 95+, Edge 95+) lets a web page ask the browser to enter a screen color sampling mode. The user can click any pixel on their screen — including outside the browser window — and the API returns the sRGB hex value of that pixel.
What color formats are shown?
The tool shows 15+ formats across four groups. CSS/Web: hex (lower and upper), rgb(), hsl(), hwb(), and CSS named color if applicable. Design tools: HSV/HSB and CMYK. Modern CSS: oklch(), lch(), and display-P3 color(). Other: 24-bit integer and normalized float vec3 (for GLSL shaders). It also shows WCAG 2.1 contrast ratios against white and black.
What is the difference between LCH and oklch?
Both are perceptually uniform color spaces where equal numeric differences correspond to equal perceived differences. LCH is based on the CIE L*a*b* space (D50 reference white) and is widely used in print. oklch is a newer space by Björn Ottosson built on the OKLab model, which is better at predicting perceived hue uniformity and is now a first-class CSS color function in modern browsers.
What is display-P3?
display-P3 is a wide-gamut color space used by modern displays (Apple devices since 2016, most newer monitors). It can represent about 25% more colors than sRGB, particularly more vivid greens and reds. CSS supports it via color(display-p3 r g b). Colors within the sRGB gamut have P3 values between 0 and 1; out-of-gamut sRGB colors may have values slightly outside this range.
What do the contrast ratio ratings mean?
WCAG 2.1 defines contrast ratio thresholds for text accessibility. AA requires 4.5:1 for normal text (3:1 for large text). AAA requires 7:1 (4.5:1 for large text). A "fail" rating means the color combination does not meet the minimum 3:1 threshold and should not be used for text.