Developer Tools
Color Picker & Converter (HEX, RGB, HSL, CMYK)
Pick a color or paste any code and convert between HEX, RGB, HSL, HSV and CMYK — with tints, shades and ready-to-copy CSS values.
How to use
- 1Use the color picker, or paste a code like #3366ff, rgb(51,102,255) or hsl(225,100%,60%).
- 2Copy any format with one click; use the tints and shades for hover states and palettes.
How it's calculated
HEX is RGB in base 16. HSL/HSV are cylindrical transforms of RGB. CMYK here is the simple device-independent conversion (K = 1 − max(R,G,B)); print shops use ICC profiles for exact results.
Frequently asked questions
What's the difference between HSL and HSV?
Both describe hue and saturation. HSL's lightness runs from black through the pure color to white; HSV's value runs from black to the pure color.
Why doesn't my CMYK print match the screen?
Screens emit light (RGB) and printers use ink (CMYK) with a smaller range of colors. Exact matching needs the printer's color profile.
Can I use 8-digit HEX?
Yes — #RRGGBBAA includes alpha (transparency) and works in all modern browsers.
One box, any format in
The input accepts 3/4/6/8-digit hex, rgb()/rgba(), hsl()/hsla() and even a typed cmyk() string, all normalized to the same internal color — so you can paste whatever format a designer, a CSS file or a brand guide happens to use and get every other format back at once, instead of running it through separate converters.
Worked example: #2563eb across every format
Tailwind's blue-600 (#2563eb) converts to rgb(37, 99, 235), hsl(221 83% 53%), hsv(221, 84%, 92%) and cmyk(84%, 58%, 0%, 8%). That CMYK figure comes from the simple device-independent formula K = 1 − max(R,G,B)/255: the brightest channel here is blue at 235/255 (≈92%), so K ≈ 8%, and C/M/Y are derived from how far each remaining channel falls short of that max. A real print shop's RIP software would apply an ICC profile instead and likely land on a visibly different CMYK mix for the same screen color.
The contrast line is a quick accessibility gut-check
Below the preview, the tool shows the color's contrast ratio against pure white and pure black with a pass/fail mark at the 4.5:1 threshold for normal text — for #2563eb that's 5.17:1 on white (passes) and 4.06:1 on black (fails). It's a fast sanity check while picking a brand color, not a replacement for the dedicated contrast checker, which also covers large text and AAA thresholds.
Picking a color directly off the screen
On Chromium-based browsers, the eyedropper button uses the native EyeDropper API to sample any pixel on your screen — including outside the browser window — and loads it straight into the tool. It's feature-detected, so the button simply doesn't render in browsers that haven't implemented the API yet, rather than showing a broken control.
Why tints and shades aren't just opacity turned up or down
A tint is produced by mixing the base color progressively toward white, and a shade by mixing it toward black, in the HSL lightness channel — not by layering transparency on top of a solid background, which is a different operation that only looks correct over one specific backdrop color. That distinction matters for hover-state design specifically: an opacity-based 'lighter' button shows whatever is behind it through the gaps, so it looks different over a white card than a gray one, while a true tint stays the same lighter solid color regardless of what it's placed over.
Worked example: why HSL and HSV disagree about the same color
Pure red at full saturation is hsl(0, 100%, 50%) in the HSL model but hsv(0, 100%, 100%) in HSV — same hue and saturation numbers, different third value, because the two models define that third channel differently. HSL's lightness runs black → pure color → white, so 50% lightness lands exactly on the purest, most saturated version of the hue; HSV's value runs black → pure color with no further lightening possible, so pure red sits at value 100%, the model's maximum. Picking a 'light red' by setting HSL lightness to 80% and picking one by setting HSV value to 80% produce visibly different colors, which is a common source of confusion when switching between design tools that default to different models.
Related tools
- CSS Gradient Generator
Build linear, radial and conic CSS gradients visually — add color stops, set the angle and copy the CSS (or Tailwind class) with a live preview.
- Number Base Converter (Binary, Hex, Octal)
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36 — including very large integers.
- Text to Binary, Hex, Octal & Decimal
Convert text to binary, hexadecimal, octal or decimal byte codes (UTF-8), and convert those codes back to text.
- ASCII Table
Full ASCII table with decimal, hex, octal and binary codes for all 128 characters, control code names and HTML entities.
- Color Picker from Image & Palette Extractor
Click anywhere on an image to get the exact HEX and RGB color, and extract its dominant color palette — for designs, brands and websites.
- Random Color Generator
Generate random colors with HEX, RGB and HSL codes — any color, pastel, dark, vivid or grayscale — for design inspiration and games.