Pick, convert and explore colors with professional tools for designers and developers. Everything runs locally in your browser.
PICK
PALETTE
#5247E6
Backdrop
HEX#5247E6
HEXA#5247E6FFFully opaque — the last pair is FF
RGBrgb(82, 71, 230)
RGBArgba(82, 71, 230, 1)
HSLhsl(244, 76%, 59%)
HSLAhsla(244, 76%, 59%, 1)
HSVhsv(244, 69%, 90%)
CMYKcmyk(64%, 69%, 0%, 10%)Naive conversion — no colour profile, so not print-ready
CSS colour#5247e6Nearest keyword: mediumslateblue
Tailwindindigo-600Nearest — #4F39F6, 21 away in RGB
Colour information
Closest name
mediumslateblue#7B68EE
HEX
#5247E6
RGB
82, 71, 230
HSL
244°, 76%, 59%
HSV
244°, 69%, 90%
CMYK
64, 69, 0, 10
Opacity
100%
Brightness
1050–255, perceived
Luminance
0.12010–1, WCAG relative
Brightness and luminance are not the same measure. Brightness is the older perceptual weighting designers know; luminance is the one WCAG uses to work out contrast, and it is what the Accessibility tab is built on.
#5247E6·82, 71, 230·244°, 76%, 59%
Everything happens locally in your browser. No colours or images are uploaded.
What is a colour picker?
A colour picker turns a colour you can see into a value you can use. You choose it by eye — dragging around a square until it looks right — and the tool hands back the notation your stylesheet, design file or print shop expects.
This one goes further than that. Alongside the picker and the conversions there is a palette generator built on the geometry of the colour wheel, a gradient builder that writes its own CSS, a contrast checker against the WCAG thresholds, a simulation of how the colour looks to someone with colour vision deficiency, and a searchable library that includes the whole Tailwind palette.
If you already have a value and only want it written another way, the colour converter is the narrower tool for that — it takes hex, RGB, HSL, HSV, CMYK or OKLCH in and gives back the rest.
All of it is arithmetic, and all of it happens in your browser. There is no server in the loop because a colour picker does not need one — converting hex to HSL is a dozen lines of maths, not a service.
How a colour picker works
The square and the slider beside it are not decoration — they are a colour model drawn out. The slider is hue, the angle around the colour wheel. The square is the other two dimensions of HSV: saturation left to right, and value — brightness — bottom to top. Every colour a screen can show is somewhere in that cylinder.
There is a reason this tool holds its state in HSV rather than RGB, and it shows up the moment you use it. At the bottom of the square every hue is the same black; at the left edge every hue is the same grey. If the tool stored RGB, dragging down to black and back up would lose the hue you had chosen, because black has no hue to remember. Storing HSV means the handle stays where you put it.
The same colour, five ways
1#4F46E5 hex2rgb(79, 70, 229) the same three channels, in decimal3hsl(244, 75%, 59%) hue angle, saturation, lightness4hsv(244, 69%, 90%) hue angle, saturation, value5cmyk(66%, 69%, 0%, 10%) four inks, for paper
Every conversion routes through sRGB, the space your screen actually works in. That is what makes them reversible: take a colour through hex, RGB, HSL and HSV and back, and you get the original bytes. CMYK is the exception, and deliberately so — it describes ink on paper, not light from a screen, and the two do not cover the same set of colours.
Colour formats explained
HEX
Three pairs of hexadecimal digits — red, green, blue — each running 00 to FF, which is 0 to 255. #FF0000 is full red. The three-digit shorthand #F00 expands by doubling each digit, so it can only express 4,096 of the 16.7 million colours. Hex is what people write down and recognise; nobody reasons in it.
RGB and RGBA
The same three channels in decimal: rgb(255, 0, 0). This is the model the hardware uses, since a pixel really is a red, a green and a blue element side by side. RGBA adds an alpha channel from 0 to 1 — rgba(255, 0, 0, 0.5) is red at half opacity. Modern CSS also accepts rgb(255 0 0 / 50%), which means the same thing.
HSL and HSLA
Hue, saturation, lightness. Hue is an angle: 0 is red, 120 green, 240 blue. Saturation runs from grey to vivid. Lightness runs from black at 0%, through the pure colour at 50%, to white at 100%. It is the format to reach for when you want to adjust a colour, because the adjustment is usually one number.
Also called HSB. Shares the hue with HSL and measures the rest differently: in HSL, 100% lightness is always white, while in HSV, 100% value is the brightest version of the colour and you reach white by also dropping saturation. That is exactly the layout of a picker square, which is why almost every design tool uses HSV internally and offers you HSL to copy.
CMYK
Cyan, magenta, yellow and key — black. Printing is subtractive: ink takes light away from white paper, where a screen adds light to a black one. The conversion here is the standard naive one, with no colour profile behind it, and it is right for reasoning about a colour and wrong for sending to a press. A real conversion needs an ICC profile for the specific paper and ink, and your printer has one.
HEX vs RGB vs HSL
All three describe exactly the same colours — every hex value has an RGB and an HSL equivalent, and converting between them loses nothing. The difference is what each one makes easy.
A comparison of the HEX, RGB and HSL formats
HEX
RGB
HSL
Looks like
#4F46E5
rgb(79, 70, 229)
hsl(244, 75%, 59%)
What the numbers mean
Red, green and blue in base 16
Red, green and blue in base 10
Hue angle, saturation, lightness
Best at
Being written down and recognised
Talking to code that thinks in channels
Being reasoned about and adjusted
Make it lighter
Recalculate all three pairs
Recalculate all three channels
Raise the third number
Opacity
A fourth pair — #4F46E580
A fourth value — rgba(…, 0.5)
A fourth value — hsla(…, 0.5)
Readable at a glance
No — but instantly recognisable
Somewhat
Yes
Reach for it when
Writing a value into a design file or a config
Compositing, canvas work, image processing
Building a scale, or adjusting a colour by hand
In practice most projects use two: HSL while designing a scale, and hex in the token file everyone else reads. There is no wrong answer, and the tool copies whichever you want.
Colour harmony
Colour harmony is the observation that colours at particular angles from each other on the wheel look deliberate together. It is a set of starting points, not a law — plenty of good design ignores all of it — but as a way to get from one colour to a set of five, it works.
Complementary
Opposite hues, 180° apart. The highest contrast two colours can have, which makes it loud: a complementary pair used in equal amounts will fight. It works best when one colour is the field and the other is a small accent on it.
Analogous
Neighbours on the wheel, usually within 30° or 60°. Calm and cohesive the way a landscape photograph is cohesive, because that is what natural light does. Low contrast is the trade — you will usually need a separate accent colour for anything that has to stand out.
Triadic
Three hues evenly spaced 120° apart. Vivid and balanced, and the classic advice applies: let one dominate and use the other two as accents, or the result is a circus.
Tetradic
Two complementary pairs — four hues. The richest scheme available and the hardest to control, for the same reason. Four colours in equal amounts have no hierarchy, so pick a dominant one before you start.
Monochromatic
One hue at many lightnesses. The safest scheme there is, because it cannot clash with itself, and the one most interface design actually uses — a brand colour, its tints for backgrounds and its shades for pressed states.
Shades mix in black. Hover and active states.
Tints mix in white. Backgrounds, disabled states, subtle fills.
Tones mix in grey. Quieter without going lighter or darker.
Colour accessibility
WCAG
The Web Content Accessibility Guidelines are the standard almost every accessibility law points at. The colour parts are narrow and precise: text must have enough contrast against its background, and colour must not be the only way information is conveyed.
Contrast ratio
How far apart two colours are in perceived brightness, from 1:1 for identical colours to 21:1 for black on white. It is computed from relative luminance rather than raw channel values, which is why two colours that look equally bright can score very differently against the same background.
AA and AAA
AA — 4.5:1 for body text, 3:1 for large text (18pt, or 14pt bold). This is the level most organisations are legally held to.
AAA — 7:1 and 4.5:1. The enhanced level, rarely mandated and worth aiming at for anything read at length.
3:1 for non-text — icons, form borders, focus rings. Frequently missed, because people check their text and stop.
Two caveats worth carrying. First, passing is necessary and not sufficient: text can clear 21:1 and still be unreadable at nine pixels, and a red-green status indicator can pass every threshold while telling a colour-blind reader nothing — which is why the colour-vision preview sits next to the ratio here. Second, the WCAG 2.1 formula itself is imperfect. It is unkind to dark backgrounds and overstates some mid greys. APCA models perception better and is not yet normative, so until it is, 2.1 is what an audit will use.
CSS gradients
A CSS gradient is an image the browser draws for you. It costs no network request, scales to any size without blurring, and animates. Three kinds cover almost everything.
Linear
Travels in a straight line. The angle is the direction of travel: 0deg points up, 90deg points right — which catches people out, because it is measured clockwise from north rather than counterclockwise from east.
Spreads out from a point. It has no angle — it has a shape (circle or ellipse) and a position instead. Useful for spotlights, soft vignettes and the glow behind a hero heading.
A soft glow from the centre
1background: radial-gradient(2 circle at center,3 #4F46E5 0%,4 #06B6D4 100%5);
Conic
Sweeps around a centre point like a colour wheel. This is how you draw a pie chart, a progress ring or a hue wheel in one line of CSS. Its angle is where the sweep begins.
A two-segment pie chart, no SVG required
1background: conic-gradient(2 from 0deg at center,3 #4F46E5 0% 65%,4 #06B6D4 65% 100%5);
One thing worth knowing about all three: browsers interpolate between stops in sRGB by default, which is why a gradient from a saturated blue to a saturated yellow passes through a muddy grey in the middle. Adding an intermediate stop is the usual fix — easier to judge by eye in the CSS gradient generator, which keeps a live preview beside the stops.
Common use cases
UI design
Interface colour is mostly scales rather than single colours — a base with tints for backgrounds and shades for hover states. Generate one from the palette tab and check the text pairing against it before committing.
Website design
Pick the colours, then check every text-on-background pair in the accessibility tab. Doing it at the palette stage is minutes; doing it after the site is built is a redesign.
Branding
A brand colour has to survive a lot: a screen, a print run, a one-colour fax of a letterhead. Check it under the colour-vision simulations, and look at the CMYK values to see how far it will drift on paper.
Logo design
Logos are the one place achromatopsia matters most, because a logo has to work in black and white. If two elements merge under the achromatopsia preview, they will merge in a photocopy.
Mobile apps
Both platforms ship a dark mode, so every colour needs a partner that works on a dark surface. The dark backdrop in the preview is the quickest way to see whether one does.
Graphic design
Print work starts in CMYK and screen work starts in RGB, and the two do not cover the same colours. A vivid screen green has no CMYK equivalent, and this is where you find that out.
CSS development
Copy the exact format you need — HSL for a scale you intend to adjust, hex for a token file, rgba when you need opacity. The gradient tab produces a copy-ready declaration.
Tailwind CSS
The library tab holds the whole v4 palette, searchable by name or hex, and the Formats panel names the closest Tailwind shade to any colour — which is how you find out whether a value from a design file is already in the palette.
Frequently asked questions
Is this colour picker free?
Yes. The picker, every conversion, the palette and gradient generators, the accessibility checker, the colour-blindness preview and all five export formats are free, with no account and no limits.
Is anything uploaded?
No. Every calculation runs in your browser — colour conversion is arithmetic, not a service. Nothing is sent to a server, nothing is stored and nothing is logged. You can disconnect from the network after the page loads and it keeps working.
How do I use the colour picker?
Drag inside the square to set saturation and brightness, use the slider under it to change hue, and the one below that for opacity. Or type a value into any field — hex, RGB, HSL, HSV or CMYK — and everything else updates to match. The square is also keyboard-operable: focus it and use the arrow keys, holding Shift for larger steps.
What is HEX?
A hex colour is three pairs of hexadecimal digits giving the red, green and blue channels, each from 00 to FF — that is 0 to 255 in decimal. #FF0000 is full red. A fourth pair adds opacity, so #FF000080 is red at about 50%. The three-digit shorthand #F00 expands by doubling each digit.
What is RGB?
The same three channels as hex, written in decimal instead: rgb(255, 0, 0). It is the model screens actually use, since a pixel is a red, a green and a blue element side by side. RGBA adds an alpha channel from 0 to 1 for opacity.
What is the difference between RGB and RGBA?
Only the alpha channel. RGBA carries a fourth value from 0 (fully transparent) to 1 (fully opaque), so rgba(255, 0, 0, 0.5) is red at half opacity. Modern CSS lets you write rgb(255 0 0 / 50%) instead, which means the same thing.
What is HSL?
Hue, saturation, lightness. Hue is an angle on the colour wheel from 0 to 360 — 0 is red, 120 is green, 240 is blue. Saturation is how colourful it is, from grey to vivid. Lightness runs from black at 0% through the pure colour at 50% to white at 100%. It is far easier to reason about than RGB: to get a lighter version of a colour you raise one number.
What is HSV, and how is it different from HSL?
HSV — sometimes called HSB — shares the hue but measures the other two differently. In HSL, 100% lightness is always white. In HSV, 100% value is the brightest version of the colour, and you get white by also dropping saturation to zero. HSV maps naturally onto a picker's square, which is why this tool holds its state that way; HSL maps naturally onto CSS, which is why that is what you copy.
What is CMYK?
Cyan, magenta, yellow and key (black) — the four inks used in printing. It is subtractive: ink removes light from white paper, where a screen adds light to black. The conversion here is the standard naive one, with no colour profile behind it.
Can I use the CMYK values for printing?
Not directly, and the tool says so rather than implying otherwise. A print-ready conversion needs an ICC profile for the specific press, paper and ink, plus a total ink limit — none of which a browser has. The numbers here are right for reasoning about a colour and wrong for sending to a printer. Ask your print supplier for their profile.
How does the colour converter work?
Everything routes through sRGB, which is the space the screen works in and the one every other model is defined against. Change any field and the value is converted to sRGB, then back out to every other format. That is why the conversions are lossless in both directions for hex, RGB, HSL and HSV — and why you can round-trip a colour through all four and get the original back.
What is a colour palette generator?
It takes one colour and produces a set that works with it, using the geometry of the colour wheel. Ten schemes are offered, from monochromatic — one hue at many lightnesses — to tetradic, which is two complementary pairs. Pick a scheme and a count of 5, 8 or 10, and every swatch can be copied or loaded back into the picker.
What is colour harmony?
The idea that colours at particular angles from each other on the wheel look deliberate together. Complementary colours sit opposite and give maximum contrast; analogous colours are neighbours and feel calm; triadic colours are evenly spaced and feel balanced. It is a set of starting points rather than a law — plenty of good design breaks all of them.
What is the difference between a shade, a tint and a tone?
All three keep the hue and change what is mixed in. A shade adds black, giving a darker version — useful for hover and pressed states. A tint adds white, giving a lighter one — useful for backgrounds and disabled states. A tone adds grey, muting the colour without moving it lighter or darker. All three are available as palette schemes.
How do I make a CSS gradient?
Open the Gradient tab, choose linear, radial or conic, set two to four colours and drag their stops, then copy the CSS. The angle means something different in each: for a linear gradient it is the direction of travel, with 0° pointing up and 90° pointing right; for a conic gradient it is where the sweep starts; a radial gradient has no angle at all, so the control is hidden rather than left doing nothing.
What is a conic gradient?
One that sweeps around a centre point like a colour wheel rather than travelling across the element. It is how you draw a pie chart, a progress ring or a colour picker in a single line of CSS, and it has been supported in every major browser since 2021.
What is a contrast ratio?
A measure of how far apart two colours are in perceived brightness, from 1:1 for identical colours to 21:1 for black on white. It is calculated from relative luminance rather than from the raw channel values, which is why two colours that look equally bright can have very different ratios against the same background.
What are the WCAG AA and AAA levels?
Thresholds for that ratio. AA — the level most organisations are legally held to — needs 4.5:1 for body text and 3:1 for large text, meaning 18pt, or 14pt bold. AAA is the enhanced level at 7:1 and 4.5:1. Separately, 3:1 is required for the non-text things you have to be able to see: icons, form borders, focus rings.
Does passing WCAG mean my colours are accessible?
It means they clear one specific, measurable bar. Contrast is necessary and not sufficient: text can pass at 21:1 and still be unreadable at nine pixels, and a red-green status indicator can pass every threshold while telling a colour-blind reader nothing. That is why this tool shows the colour-vision preview beside the ratio.
Are the WCAG contrast formulas perfect?
No, and it is worth knowing where they fall down. The WCAG 2.1 formula is known to be unkind to dark backgrounds and to overstate the legibility of some mid greys. APCA is the intended replacement and models perception considerably better, but it is not yet normative — so until it is, the 2.1 numbers are what an audit will use and what this tool reports.
What is the colour blindness preview for?
To check that a pair of colours still means something to a reader without one of the three cone types. Around one man in twelve has some form of colour vision deficiency. The simulation shows the severe case — a missing cone rather than a shifted one — because a design that survives that survives the milder forms too.
What is the eyedropper, and why can't I see it?
It lets you pick a colour from anywhere on your screen, including outside the browser. It uses the EyeDropper API, which at the time of writing is Chromium-only — so in Firefox and Safari the button is hidden rather than shown broken. Everything else on the page works identically in every browser.
How does the closest Tailwind colour work?
Your colour is compared against all 273 shades in the Tailwind v4 palette and the nearest is reported, with the distance so you can see how good the match is. Tailwind v4 defines its palette in OKLCH, which is a wider space than sRGB, so the hex values here are the sRGB approximations — what your screen actually shows.
How is the closest colour name chosen?
By comparing against all 148 CSS named colours in a hue-weighted space rather than by raw RGB distance. Straight RGB distance produces answers that read as wrong — it will call a mid orange “olive” because the numbers happen to be close. Weighting hue, and ignoring it when a colour is nearly grey, gives answers a person recognises.
What can I export?
The palette as CSS custom properties, SCSS variables and a map, JSON with hex, RGB and HSL for every swatch, an SVG with the values printed on it, or a PNG at 2× for a slide. The variable names come from the swatch labels, so you get --color-base and --color-plus-120 rather than --color-1 through --color-5.
Are there keyboard shortcuts?
Ctrl/Cmd+R picks a random colour, Ctrl/Cmd+Shift+C copies the hex, Ctrl/Cmd+Shift+G jumps to the palette, Ctrl/Cmd+Shift+D downloads the palette as CSS and Ctrl/Cmd+Shift+Delete resets everything. The picker square itself responds to the arrow keys, with Shift for larger steps.
Keep going
Tools that pair with this one
Same engine, same privacy model — everything below runs in your browser too.