| Name | HEX | RGB | HSL | OKLCH | Lightness | Text on it | Group |
|---|
colours [colour|palette|contrast] hex-or-name| Name | HEX | RGB | HSL | OKLCH | Lightness | Text on it | Group |
|---|
From a colour you have to a name, a value you can paste and text that stays readable on it. In your browser, without an account.
Type or paste a HEX, rgb(), hsl(), hwb() or oklch() code, or a name like tomato. You can also use the colour picker, the eyedropper or click any swatch in the grid.
The Colour panel shows the closest of the 148 CSS names, how far off it is and the next-nearest alternatives. Exact matches are marked, and a colour with no close name says so.
Click a row to copy HEX, RGB, HSL, HWB, OKLCH or the CSS name. Drag the OKLCH sliders to nudge lightness, chroma or hue and the values follow.
See black and white text on your colour with their WCAG 2.2 ratio and grade. The Contrast panel checks any text and background pair and suggests a nearby colour that passes.
The Palette panel makes a 50 to 950 scale, tints, shades and harmonies as CSS, Tailwind, SCSS or JSON. Browse, Table and Map show all 148 names.
#1e90ff, 1e90ff, #fff, with or without alphargb(30,144,255) or rgb(30 144 255 / 50%)hsl(210 100% 56%), hwb(210 12% 0%)oklch(65% 0.2 253), also oklab()tomato, rebecca purple, grey?hex=1a2b3c or an rgb(), hsl(), oklch() value?search=blue filters the gridbrowse, table or mapA colour name finder takes a colour code and tells you what that colour is called. Paste #1e90ff and it answers dodgerblue. Paste a code that has no name and it gives you the closest CSS colour name and how far away it is. CSS defines 148 colour keywords, from aliceblue to yellowgreen, that you can use anywhere a colour is allowed. They cover 139 distinct colours, because nine colours have two names. This page names a colour, shows it in every CSS format, checks the text contrast on it and builds a palette from it.
Any HEX, RGB, HSL, HWB or OKLCH value, or a pick from the screen, gets the nearest of the 148 CSS names, the colour difference and the next five candidates.
A searchable grid, a table sortable by hue group, perceptual lightness or name, and a map that puts every name on a hue and lightness chart.
HEX, RGB, HSL, HWB, OKLCH and the CSS name, one click each. OKLCH keeps enough digits to paste back onto the same colour.
Move lightness, chroma and hue with gradient tracks that show where each slider leads, and stay inside what sRGB can display.
Black and white text on your colour, plus a checker for any text and background pair with AA, AAA, large-text and UI verdicts and a nearby colour that passes.
A 50 to 950 scale, tints, shades, tones and five harmonies, exported as CSS variables, OKLCH variables, a Tailwind theme, an SCSS map or JSON.
The address always holds the current colour, for example ?hex=1a2b3c. Send the link and the page opens on it.
Everything runs in your browser. No colour is sent anywhere, and nothing needs an account.
The left panel is about your colour. The Colour tab has the name, the six formats, the OKLCH sliders and the black and white text check. The Palette tab turns the colour into a scale and harmonies. The Contrast tab checks it against a second colour. A strip of recent colours sits under the tabs, so you can go back to one you left.
The right side is the reference: all 148 CSS colour names as swatches (Browse), as a table (Table) and on a chart (Map). Clicking a name makes it your colour, and your colour is marked in all three views, with its closest name outlined when there is no exact match. The arrow keys step through the names. On a phone the left panel is a sheet that opens from the Inspect button, and full screen gives the names the whole display with your colour in a slide-in drawer.
Colours are compared in OKLab, a colour space built so that distance matches what the eye sees. The page measures the distance from your colour to each of the 139 distinct named colours, multiplies it by 100 and picks the smallest. A difference of 0 is the same colour, and about 2 is the smallest step a person can notice. The result is described in words: an exact match, indistinguishable to the eye, a very close match (under 5), a noticeably different one (under 10), or no close name above that.
That last case is deliberate. There are 16.7 million possible hex values and only 139 distinct names, so most colours have no name of their own. When nothing is near, the page says so, shows the nearest name anyway with its distance, and marks the name with a ≈ instead of pretending the match is good. Where two names share a value, such as aqua and cyan or gray and grey, the card lists the other spelling too.
The box reads most of the ways a colour is written in CSS and design tools:
#. Four and eight digit values carry transparency, which is ignored because names and contrast apply to the solid colour.rgb(30 144 255 / 50%). Three bare numbers like 30 144 255 work too.deg, turn, rad or grad hue units.RebeccaPurple, rebecca purple, light-grey.color: #1e90ff; or --brand: rgb(30,144,255), from which only the colour is taken.The colour picker next to the box and the eyedropper, which picks a pixel from anywhere on your screen in browsers that support it, do the same job without typing.
All three numbers circulate, and they count different things. CSS Color Module Level 4 defines 148 colour keywords. Seven of those are British spellings of American ones (grey for gray and friends), which is where the familiar 141 comes from, and older lists that predate rebeccapurple say 140. Two more pairs are different names for the same value (aqua/cyan, fuchsia/magenta), so there are only 139 visually distinct colours in the whole set. This tool covers all 148 keywords: 141 named entries, with the seven -grey spellings searchable and shown beside their -gray twin.
Almost all of them are inherited from the X11 window system colour list of the 1980s, which is why the set is so uneven: a long run of greens but only a handful of oranges, four kinds of goldenrod, and a brown (#a52a2a) that is really a dark red. One name has a different origin. rebeccapurple (#663399) was added to CSS in 2014 in memory of Rebecca Alison Meyer, the daughter of web standards author Eric Meyer, who died at six years old. It is the only named colour in the spec added as a tribute.
Nine hex values answer to two names each. Seven are spelling pairs (gray/grey, darkgray/darkgrey, dimgray/dimgrey, lightgray/lightgrey, slategray/slategrey, lightslategray/lightslategrey, darkslategray/darkslategrey) and two are genuinely different words for the same colour: aqua = cyan (#00ffff) and fuchsia = magenta (#ff00ff). Both spellings of each pair are valid CSS and always have been. Searching for grey finds the -gray entries.
Because the names were never designed as a system. gray is #808080, with a perceptual lightness of 60.0%; darkgray is #a9a9a9 at 73.5%, visibly lighter. lightslategray (61.9%) also sits between them. The greys came from X11, where darkgray was named relative to a different reference than plain gray, and CSS inherited both without reconciling them. Switch the table to sort by lightness, or open the Map and look at the grey strip, and the whole grey family falls into an order that has almost nothing to do with its names.
green is not the green you thinkgreen is #008000, a dark, muted green at 52% perceptual lightness. The bright green most people picture is lime (#00ff00). The same trap catches purple (#800080, much darker than magenta) and gray versus silver. These come from the original 16 CSS Level 1 keywords, which were named for a 16-colour VGA palette rather than for how they look on a modern screen.
No. RebeccaPurple, rebeccapurple and REBECCAPURPLE are the same keyword to a browser. This tool displays them in CamelCase because it reads more clearly in a list, but the value you copy is the lowercase form used in stylesheets. Colour names work anywhere a <color> value is allowed: color, background, border, gradients, SVG fill, and inside color-mix().
For quick prototypes, debugging and throwaway demos they are excellent: tomato is faster to type and easier to remember than #ff6347. For a real design system they are a poor fit. There are only 139 of them, they cluster unevenly, the names lie about lightness (see darkgray), and you cannot derive a scale from them. The usual path is to prototype with names, then pin down the real palette in OKLCH, where a lightness ramp is something you can compute. The Palette tab does that step for you.
Paste a HEX, RGB, HSL, HWB or OKLCH value into the box and the Colour tab returns the closest CSS colour name along with every other format. It works as a colour identifier and colour namer in one: give it a value, get the name. The hex-to-colour-name lookup also works from a shareable link. Open ?hex=1a2b3c to land on the result. RGB-to-colour-name, HSL-to-colour-name and OKLCH-to-colour-name use the same nearest-match logic as the hex lookup.
Most colours do not have one. This tool claims a name only when the colour is close to it. Otherwise the title reads “No close name” and the nearest candidate is shown with its distance, so you can judge for yourself. A vaguely nearest name is more misleading than none at all.
HEX and RGB are the same thing written differently: how much red, green and blue a screen mixes, with hex writing the amounts in base 16. HSL reorganises that into hue, saturation and lightness, which is friendlier to reason about but perceptually dishonest, because its “lightness” is a mathematical midpoint, not a perceived one. HWB describes the same colour as a hue plus how much white and black is mixed in, which is how many people think about tints and shades. OKLCH fixes the lightness problem, at the cost of being newer and less familiar. This tool shows all five for every colour, so you never convert by hand or trust an approximation.
| Format | Describes | Good for | Watch out for |
|---|---|---|---|
| HEX | red, green, blue in base 16 | copying between tools, short and universal | nothing readable about it: you cannot tell what #1e90ff will look like |
| RGB | red, green, blue, 0 to 255 | canvas, images, anything numeric | hard to lighten or shift a hue by hand |
| HSL | hue, saturation, lightness | quick tweaks in a stylesheet | equal lightness does not look equal across hues |
| HWB | hue, whiteness, blackness | tints and shades by feel | same unevenness as HSL |
| OKLCH | perceptual lightness, chroma, hue | design systems, predictable ramps, wide gamut | values outside sRGB need a fallback in older browsers |
OKLCH is the colour format from CSS Color Level 4 that has become the default for design systems. It describes a colour as L (perceptual lightness), C (chroma, or saturation) and H (hue angle), and unlike HSL its lightness matches what your eye sees. In HSL, hsl(60 100% 50%) (yellow) and hsl(240 100% 50%) (blue) claim the same 50% lightness while looking nothing alike. In OKLCH the same L really does mean the same apparent brightness across every hue. That is what makes it possible to build a colour ramp, or darken a colour by 10%, and get a predictable result. Every colour here shows its OKLCH value, and the three sliders edit it directly.
oklch() valueThe box accepts oklch(62.8% 0.25768 29.23) and gives you back the hex, RGB, HSL and closest colour name. It takes lightness as a percentage or as a 0 to 1 number, tolerates commas, and accepts deg on the hue. The OKLCH values this tool prints are precise enough to paste straight back in and land on the identical colour. Rounded-off chroma silently shifts saturated colours by several steps, so the extra digits are there on purpose.
That message appears because OKLCH can describe colours your screen may not be able to show. It covers wide-gamut spaces like Display P3, which modern Apple and OLED screens support and which covers roughly a quarter more colours than sRGB. If you ask for a chroma higher than sRGB can reach at that lightness and hue, there is no matching hex. The tool tells you so and shows the nearest sRGB colour instead of quietly clipping it and pretending the numbers matched. The chroma slider stops at the same limit and says where it is.
It is supported in current versions of every major browser, so for most projects the answer is yes. The usual caution applies to older browsers: if you need to support them, supply a hex fallback declaration before the oklch() one (older browsers ignore what they cannot parse) or generate hex at build time. Copying both values from this tool takes one extra click.
The Palette tab starts from your colour. The Scale is eleven steps, 50 to 950, spaced by OKLCH lightness at your hue, in the style of a design-system ramp. Your colour takes the nearest step and is marked yours, so the ramp always contains the exact value you started with. Where a hue cannot be that light or dark and still be saturated, the chroma is trimmed to what sRGB can show, so a pale step is a tinted off-white and not a clipped neon. Tints mix your colour towards white, shades towards black, and tones towards the grey of the same lightness, all in OKLab so the steps look even.
The same scale becomes code in one click: CSS variables (--dodgerblue-500), OKLCH variables, a Tailwind @theme block with --color-name-50 to --color-name-950, an SCSS map or JSON. The name defaults to the closest CSS name and can be changed.
Harmonies rotate the hue and keep lightness and chroma: complementary (opposite, 180°), analogous (30° either side), triadic (120° apart), split complementary (the base plus the neighbours of its opposite) and tetradic (90° apart). Rotating in OKLCH instead of HSL keeps the colours at a similar brightness, so a triad does not suddenly contain one glaring member. Each result shows its nearest CSS name, and a click makes it your colour.
Of the 148 keywords, 116 carry black body text at WCAG AA and 32 carry white. As it happens, not one of them works with both. There is a narrow band of lightness where black and white would each pass, and no named colour falls inside it. In practice every named colour has exactly one correct text colour, and the wrong choice is an accessibility failure and not a matter of taste. The Table shows the verdict for all of them at a glance, and each swatch in Browse carries its best ratio.
For the colour you select, the Colour tab shows what black text and white text would look like on it, each with its WCAG contrast ratio and grade: AAA (7:1), AA (4.5:1 for body text), AA large (3:1 for 18pt and above) or fail. It answers the question you usually have: can I put words on this colour, and in which colour?
The Contrast tab takes your colour as the background (or as the text, with one press of the arrows) and a second colour for the other role. It shows the ratio, a live sample, and a pass or fail for each WCAG 2.2 level in the table below. When the pair fails, it proposes the nearest colour that passes, found by moving only the lightness of the second colour so its hue and saturation stay, and it lists the CSS named colours that already pass as text on your colour.
| Level | Ratio | Applies to |
|---|---|---|
| AA, normal text | 4.5:1 | body text under 18pt, or under 14pt bold |
| AAA, normal text | 7:1 | the enhanced level, worth aiming for on long reading |
| AA, large text | 3:1 | text from 18pt (24px), or 14pt (about 18.7px) bold |
| AAA, large text | 4.5:1 | the enhanced level for large text |
| UI components and graphics | 3:1 | icons, input borders, chart lines and other parts needed to understand an interface |
They measure different things and disagree more often than you would expect. Perceptual lightness (the L in OKLCH) is how bright a colour looks to a human eye. The WCAG contrast ratio is a formula comparing two colours’ relative luminance, weighted heavily towards green, which is why a saturated yellow and a mid grey can feel similarly bright yet behave completely differently under a text colour. This tool shows both: the first tells you how a colour sits in a palette, the second whether you may put text on it. The WCAG 2 formula is the one accessibility audits and legal standards still refer to, so it is the one used here.
The Map view puts each of the 139 distinct names on a chart: hue across, lightness up (or chroma, with the toggle), dot size showing how saturated it is, and the greys in a strip of their own on the left. Your colour appears as a ringed dot with guide lines, and a line to its closest name when there is no exact match. It shows at a glance what the list hides: that there is a thick cluster of mid-lightness blues and greens, almost nothing saturated and light in the reds, and that the named greys are scattered rather than stepping evenly. Hover a dot for its values, press it to make it your colour, and switch on Show names to label them all.
The Table has a Lightness sort that ranks every named entry from white (100%) down to black (0%) using the OKLCH L value and not the name. It is the fastest way to pick a set of named colours that step evenly, and it makes the naming quirks impossible to miss: darkgray lands well above gray, and navy (27.1%) turns out to be the darkest colour in the whole set apart from black itself.
The more menu in the top bar of the studio saves the whole list as a CSV (name, CSS keyword, spelling alias, HEX, RGB, HSL, OKLCH, lightness, hue group, best text colour and its contrast), as JSON, or as a block of CSS custom properties (--color-tomato: #ff6347;) ready to paste into a stylesheet. Copy every format puts HEX, RGB, HSL, HWB, OKLCH and the CSS name of your current colour on the clipboard, one per line.
Click any row to copy it in a CSS-ready form: #ffd700, rgb(255,215,0), hsl(51,100%,50%), hwb(51 0% 0%), oklch(88.68% 0.18219 95.33) or the bare name gold. All of them paste directly into a stylesheet, a Tailwind config or a design tool.
The address keeps in step with the studio, so you (or an AI assistant) can build a deep link by hand. Open ?hex=1a2b3c to land on that colour with its name and every format. The value works with or without the # and also accepts rgb(), hsl() and oklch() strings (aliases color, colour, c). Use ?search=blue to filter the named-colour grid, ?tab=table or ?tab=map to open another view, ?p=palette or ?p=contrast to open another panel, and ?hex=1a2b3c&fg=ffffff to open the contrast checker with white text on that background. Copy a link to this colour in the header of the left panel gives you the shortest one.
It runs entirely in your browser on phone, tablet or desktop. Nothing is uploaded: every name lookup, conversion, contrast calculation and palette happens on your own device, and no colours are sent to or stored on a server. The eyedropper is the browser’s own and reads a pixel only when you press it. The page remembers your last colour, your recent colours and your view settings in this browser only. The one request it makes beyond loading itself is an anonymous, cookie-free page-view count.