Random color · CSS named colors · HEX and RGB

Color Wheel Spinner — 32 CSS Named Colors with HEX and RGB

Thirty-two CSS named colors, each sector painted with its own value. Spin for a color and read the name, the HEX code and the RGB triplet.

32 named colorsReal hex fillsHEX and RGB resultContrast-safe labelsNo sign-in

Spin the wheel

A wheel with 32 options: tomato, coral, crimson, firebrick, maroon, gold, khaki, olive, lime, green, aquamarine, turquoise, teal, skyblue, dodgerblue, steelblue, navy, indigo, rebeccapurple, purple, plum, violet, orchid, hotpink, pink, salmon, tan, chocolate, beige, lavender, silver, slategray.

Press Space or Enter, or click Spin. 32 options · all sectors labeled (narrowest 11.3°)

Result

Nothing drawn yet

The winner is drawn first, then the wheel moves to it.

All 32 colors on the wheel

Each row is the name, the hex value and the decimal triplet from the CSS Color 4 table. The wheel uses the hex value as the sector fill, so the picture and the code cannot disagree.

What the wheel is actually picking

Each sector is a CSS named color from CSS Color Module Level 4: tomato, coral, gold, teal, dodgerblue, rebeccapurple and twenty-six more. The spec defines 148 named colors in total; this wheel keeps the 32 a person is likely to say out loud in a design conversation, plus rebeccapurple, which the spec added in memory of Rebecca Meyer. Every hex value on this page was read from that table rather than typed from memory.

The sector fill is the color itself, which makes the wheel a palette you can look at rather than a list of words. Spin it and the result panel prints three forms of the same value: the name, the six-digit hex code and the decimal RGB triplet, plus a one-line description of what the color looks like. Those are the three forms you need to paste a color into CSS, a design tool or a message.

Labels are drawn in black or white — never a third color — and the choice is made by computing the WCAG relative luminance of the fill and taking whichever of black and white has the higher contrast ratio, (L1 + 0.05) / (L2 + 0.05). That is the same formula the accessibility guidelines use for text contrast, applied here so a label on lime is readable without hand-tuning the palette.

Using a random color without regretting it

A random named color is a good starting point and a bad final answer. Use the wheel to break a tie between two accents, to pick a color for a chart series, or to give a child a color to draw with — then check it against what it sits next to. Two colors can both be pleasant alone and muddy together, and the wheel cannot see your layout.

If the color is going behind text, the number to check is contrast, not taste. WCAG 2.2 asks for 4.5:1 for normal-size text and 3:1 for large text, and every label on this wheel is drawn in whichever of black and white that formula scores higher against its sector — so the sectors themselves are a live contrast demonstration. For body text on a colored background, test the pair you intend to ship, not the pair the wheel chose for a label.

The hex values here are lowercase, six digits, no shorthand — the form that survives copy-paste everywhere. If a tool wants `rgb()` instead, the triplet is printed next to it; the conversion is exact, not rounded, because the spec table lists both forms of the same value.

One honest caveat about color names

CSS named colors are a historical list, not a perceptual system: “green” is darker than “lime”, “gray” and “grey” are the same color, and several names describe a hue that no longer matches the word. The wheel reproduces the spec; it does not claim the names are systematic.

The draw is the same weighted, rejection-sampled draw as every other wheel on this site, and the result is fixed before the animation starts. With thirty-two equal weights each color has a 3.125% chance, which the percentage column shows; weight one color up if you are choosing between a few candidates rather than sampling the whole palette.

Questions this page answers

Where do these color names and hex values come from?

From the named-color table in CSS Color Module Level 4, which prints every name with its hex value and decimal triplet. This page uses 32 of the 148 names, and the hex shown on the wheel is the value from that table.

Is the result a name, a hex code or an RGB value?

All three, because they are the same color written three ways. The result panel prints the name, the lowercase six-digit hex code and the rgb() triplet, so the value can be pasted into CSS, a design tool or a message without conversion.

Why are the labels sometimes black and sometimes white?

The label color is whichever of black and white has the higher WCAG contrast ratio against the sector fill, computed from relative luminance. That keeps text on pale colors like beige readable and text on navy readable too, without hand-picking per color.

Can I weight a color so it wins more often?

Yes. Every entry has a weight box and the percentage column updates as you type. Raising a color to 3 makes it three times as likely as a weight of 1, and setting a weight to 0 removes it from the draw while leaving it on the wheel.

Is a random color a good palette?

No. One random color is a starting point; a palette needs contrast and proportion, which a wheel cannot see. Use the result as the first color, then check it against your text and background with a contrast tool before shipping it.

Sources, and what was actually fetched

Every figure on this site that is not arithmetic comes from one of these pages, read while this build was made. Where a source could not be reached, the page says so instead of pretending.

Put this wheel on your own page

Embed the wheel

Copy the snippet into any page. The widget is free, needs no key, and sends nothing until a visitor actually spins.

Open the widget view

The wheel is a decision aid, not advice. Odds are arithmetic on the weights you set; the country list is the UN’s membership list and the color values are the CSS Color 4 table, both cited above. Nothing you type is uploaded, and nothing is remembered after you close the tab except the list this browser saved for you.