Pick any color and convert between HEX, RGB, HSL, and CMYK. Check WCAG contrast ratios and explore shades and tints — all in your browser.
HEX
#6366F1
RGB
rgb(99, 102, 241)
CSS
rgb(99 102 241)
Color selection interfaces enable designers and developers to explore, sample, convert, and harmonize colour values across digital design systems. With the advent of CSS Color Module Level 4, modern web browsers now support hardware-accelerated wide gamut colour spaces, allowing displays to reproduce deep vibrancies well beyond legacy sRGB constraints.
| Color Space | Gamut Volume Coverage | Hardware Requirement | Standard CSS Syntax |
|---|---|---|---|
| sRGB | Standard reference gamut (~35% visible spectrum) | Universal across all screens | rgb(255, 0, 0) |
| Display P3 | ~25% wider gamut than sRGB | Apple Retina displays, OLED panels | color(display-p3 1 0 0) |
| OKLCH / OKLab | Perceptually uniform across human vision | Modern browsers (CSS Color Module 4) | oklch(0.65 0.25 140) |
| HSL | Cylindrical coordinate representation of sRGB | Universal across all browsers | hsl(210, 100%, 50%) |
Design systems build balanced UI color schemes by referencing geometric relationships on the color wheel:
Modern Chromium-based browsers provide native screen color sampling via the window.EyeDropper API:
async function sampleScreenPixel() {
if ('EyeDropper' in window) {
try {
const eyeDropper = new window.EyeDropper();
const result = await eyeDropper.open();
console.log('Sampled Hex:', result.sRGBHex);
return result.sRGBHex;
} catch (e) {
console.log('User dismissed dropper');
}
} else {
console.warn('EyeDropper API is not supported in this browser.');
}
}
This website and utility are provided for general informational, calculation, and educational purposes only. Always verify critical computation outputs prior to professional deployment or financial use. See our Terms of Service and Privacy Policy for full governance details.