Random Color Generator

This random color generator spins a wheel of real colors and tells you the name, hex code and RGB value of the one it lands on. Load a palette, or type any color name or hex code to add your own slice.

Palettes

Type a CSS color name or a hex code such as #3a7bd5 on its own line, and its slice takes that color.

Spin to get a color and its hex code.
RedOrangeYellowGreenTealBluePurplePinkBrownGrayBlackWhiteSPIN
  • Red
  • Orange
  • Yellow
  • Green
  • Teal
  • Blue
  • Purple
  • Pink
  • Brown
  • Gray
  • Black
  • White

Click the wheel, press Space, or Ctrl + Enter.Tap the wheel or press Spin.

10 palettes

Ten palettes for the random color generator

Each palette loads with one click, and every color in it is a CSS named color with an exact hex code. The button shows how many colors it adds, and Undo in the message that appears puts your old wheel back.

  • Everyday colors

    The default wheel: 12 color words most people know. Red, Orange, Yellow, Green, Teal, Blue, Purple, Pink, Brown, Gray, Black, White.

    12 colors8.3% each

  • Rainbow

    The 7 rainbow colors in order, red to violet. Red, Orange, Yellow, Green, Blue, Indigo, Violet.

    7 colors14.3% each

  • Primary and secondary

    The painter's primaries, then the secondaries made by mixing 2 of them. Red, Yellow, Blue, Orange, Green, Purple.

    6 colors16.7% each

  • 16 basic colors

    The 16 names CSS took from the VGA palette by way of HTML. Black, Silver, Gray, White, Maroon, Red, Purple, Fuchsia, Green, Lime, Olive, Yellow, Navy, Blue, Teal, Aqua.

    16 colors6.3% each

  • Pastels

    Soft, light colors. Pink, Peach Puff, Lemon Chiffon, Pale Green, Pale Turquoise, Light Blue, Lavender, Thistle.

    8 colors12.5% each

  • Warm

    Reds, oranges and yellows. Crimson, Red, Orange Red, Tomato, Coral, Dark Orange, Orange, Gold.

    8 colors12.5% each

  • Cool

    Blue-greens and blues, from turquoise to navy. Turquoise, Light Sea Green, Teal, Deep Sky Blue, Dodger Blue, Royal Blue, Navy, Slate Blue.

    8 colors12.5% each

  • Neutrals

    Grays, white, black and pale browns. Black, Dim Gray, Gray, Silver, Gainsboro, White, Beige, Tan.

    8 colors12.5% each

  • Earth tones

    Browns, olives and deep reds. Saddle Brown, Sienna, Chocolate, Peru, Burlywood, Olive, Dark Olive Green, Maroon.

    8 colors12.5% each

  • All named colors

    Every CSS named color once: 139 colors. Alice blue to yellow green.

    139 colors0.7% each

The 16 basic colors palette follows the CSS specification, which says those 16 names came from the VGA palette and were then adopted into HTML. The other nine palettes are Wheel Spinning's own picks.

Quick start

How to pick a color with the spinner

Start from a palette or from your own shortlist. The color spinner runs the same on a phone, a tablet or the board at the front of a class.

  1. Load a palette

    Press a palette under Palettes, next to the wheel (under it on a phone), such as Rainbow (7) or Pastels (8).

  2. Or type your own

    Open Edit entries & settings and type a CSS color name or a hex code on each line. #3a7bd5 and #f80 both work.

  3. Spin

    Use the Spin button, a click on the wheel or the Space key. A popup then shows a swatch, the name, the hex code and the RGB value.

  4. Copy the code

    Press Copy in the popup, or Copy hex next to the last color. Copy all hex codes copies every slice as “name: hex”.

Your browser's crypto.getRandomValues draws the result before the wheel starts to turn, and a slice's color has no effect on the pick. A pale slice and a dark slice have the same chance. See how the randomness is checked.

Color wheel picker

Where the named colors sit on the color wheel

A screen's color wheel runs through 360 degrees of hue, with red at 0°, green at 120° and blue at 240°. Placing all 139 CSS colors on that circle shows which hues the random color generator lands on most when you load All named colors.

  • 23Orange huesThe biggest group, so 16.5% of spins on All named colors
  • 24Grays and near-whites17.3% of spins, from black to snow
  • 4Magenta-red huesThe smallest group, 2.9% of spins
The 139 distinct CSS named colors grouped by hue
HueNamed colorsChance on All named colors
Red 345°–15°
  • Brown
  • Crimson
  • Dark Red
  • Firebrick
  • Indian Red
  • Light Coral
  • Light Pink
  • Maroon
  • Misty Rose
  • Pink
  • Red
  • Rosy Brown
  • Salmon
  • Tomato
14 of 139, 10.1%
Orange 15°–45°
  • Antique White
  • Bisque
  • Blanched Almond
  • Burlywood
  • Chocolate
  • Coral
  • Dark Goldenrod
  • Dark Orange
  • Dark Salmon
  • Goldenrod
  • Light Salmon
  • Moccasin
  • Navajo White
  • Orange
  • Orange Red
  • Papaya Whip
  • Peach Puff
  • Peru
  • Saddle Brown
  • Sandy Brown
  • Sienna
  • Tan
  • Wheat
23 of 139, 16.5%
Yellow 45°–75°
  • Cornsilk
  • Dark Khaki
  • Gold
  • Khaki
  • Lemon Chiffon
  • Light Goldenrod Yellow
  • Light Yellow
  • Olive
  • Pale Goldenrod
  • Yellow
10 of 139, 7.2%
Yellow-green 75°–105°
  • Chartreuse
  • Dark Olive Green
  • Green Yellow
  • Lawn Green
  • Olive Drab
  • Yellow Green
6 of 139, 4.3%
Green 105°–135°
  • Dark Green
  • Dark Sea Green
  • Forest Green
  • Green
  • Light Green
  • Lime
  • Lime Green
  • Pale Green
8 of 139, 5.8%
Green-cyan 135°–165°
  • Aquamarine
  • Medium Aquamarine
  • Medium Sea Green
  • Medium Spring Green
  • Sea Green
  • Spring Green
6 of 139, 4.3%
Cyan 165°–195°
  • Cadet Blue
  • Cyan
  • Dark Cyan
  • Dark Slate Gray
  • Dark Turquoise
  • Light Blue
  • Light Cyan
  • Light Sea Green
  • Medium Turquoise
  • Pale Turquoise
  • Powder Blue
  • Teal
  • Turquoise
13 of 139, 9.4%
Cyan-blue 195°–225°
  • Cornflower Blue
  • Deep Sky Blue
  • Dodger Blue
  • Light Sky Blue
  • Light Slate Gray
  • Light Steel Blue
  • Sky Blue
  • Slate Gray
  • Steel Blue
9 of 139, 6.5%
Blue 225°–255°
  • Blue
  • Dark Blue
  • Dark Slate Blue
  • Medium Blue
  • Medium Slate Blue
  • Midnight Blue
  • Navy
  • Royal Blue
  • Slate Blue
9 of 139, 6.5%
Blue-violet 255°–285°
  • Blue Violet
  • Dark Orchid
  • Dark Violet
  • Indigo
  • Medium Purple
  • Rebecca Purple
6 of 139, 4.3%
Magenta 285°–315°
  • Dark Magenta
  • Magenta
  • Medium Orchid
  • Orchid
  • Plum
  • Purple
  • Violet
7 of 139, 5%
Magenta-red 315°–345°
  • Deep Pink
  • Hot Pink
  • Medium Violet Red
  • Pale Violet Red
4 of 139, 2.9%
Neutral grays and near-whites
  • Alice Blue
  • Azure
  • Beige
  • Black
  • Dark Gray
  • Dim Gray
  • Floral White
  • Gainsboro
  • Ghost White
  • Gray
  • Honeydew
  • Ivory
  • Lavender
  • Lavender Blush
  • Light Gray
  • Linen
  • Mint Cream
  • Old Lace
  • Seashell
  • Silver
  • Snow
  • Thistle
  • White
  • White Smoke
24 of 139, 17.3%

Each hue comes from the color's hex code with the HSL formula in CSS Color 4. Colors whose red, green and blue values sit within 25 of each other count as neutral, because they show almost no hue. Pale tints keep their hue, so bisque and wheat count as oranges.

Screen wheel or painter's wheel?

  • On a screen's wheel, opposite hues sit 180° apart. Red faces cyan, and blue faces yellow.
  • A painter's wheel starts from red, yellow and blue. Each primary faces the secondary mixed from the other two, so red faces green.
  • The Primary and secondary palette spins those six painter's colors, which suits art class warm-ups.
  • This color wheel picker chooses for you. It picks one color at random and doesn't draw a hue circle or suggest matching colors.

Hex and RGB

Reading the hex code from the random color generator

A hex color code writes a color as 3 pairs of hexadecimal digits, one pair each for red, green and blue. Each pair runs from 00, meaning none of that light, to ff, meaning full strength. In decimal, ff is 255.

Take tomato, #ff6347. The first digit of each pair counts sixteens, so ff is 15 × 16 + 15 = 255. Then 63 is 6 × 16 + 3 = 99, and 47 is 4 × 16 + 7 = 71. That is why the popup reads #ff6347 · rgb(255 99 71).

Subtract each value from 255 and you get the opposite hue on a screen's wheel. Tomato turns into #009cb8. Pale colors come back dark, so treat the result as a starting point for a contrast color.

The hex notation rules also allow 3-digit codes, where each digit doubles, so #f80 is #ff8800. Capital and small letters mean the same thing. Four- and eight-digit codes add transparency, which a solid slice can't show, so the wheel reads 3- and 6-digit codes.

Hex codes split into red, green and blue
ColorRedGreenBlue
#000000 black000
#ffffff white255255255
#ff0000 red25500
#00ff00 lime02550
#008000 green01280
#ff6347 tomato2559971
#663399 rebeccapurple10251153
  • Tomato #ff6347#009cb8
  • Gold #ffd700#0028ff
  • Teal #008080#ff7f7f

Opposites worked out as 255 minus each channel.

  • 16.8MPossible 6-digit codes256 × 256 × 256 = 16,777,216
  • 139Of them have a CSS nameAbout 1 in 120,700 codes
  • #f80Short for #ff8800A 3-digit code doubles each digit

Random color palette

Spin a random color palette without repeats

Spin once for each color you need, and take each winner off the wheel so no color comes up twice. Without that step, repeats turn up more often than most people expect.

After each spin, take the color off with Remove in the popup. Or pick That entry under Remove the winner automatically in Customize, and the wheel drops each color after a short countdown.

Five spins of the random color generator on Everyday colors give a 5-color set for a poster, a mood board or a game night table. Press Copy in each popup as you go, or read the five names from the Results tab later. The Results tab also exports a CSV with the time of every spin.

For a calmer set, spin Pastels or Earth tones. For a strange one, All named colors puts 139 slices on the wheel, from alice blue to yellow green.

  • Primary and secondary (6)9.3%
  • Rainbow (7)15%
  • Pastels, Warm, Cool, Neutrals, Earth tones (8)20.5%
  • Everyday colors (12)38.2%
  • 16 basic colors (16)50%
  • All named colors (139)93%
Chance that 5 spins without removing winners give 5 different colors, worked out exactly. With removal it is always 100%.

CSS named colors

The 148 CSS color names behind the color wheel spinner

CSS defines 148 color names for 139 different colors, and every one works on the random color generator. The W3C sets the list in CSS Color Module Level 4, and each name maps to one exact hex code, such as tomato for #ff6347.

  • 148Color namesEvery one types straight onto the wheel
  • 139Different colorsThe All named colors palette
  • 9Second spellingsGrey for gray, aqua and fuchsia
  • 16Basic colorsThe VGA set that HTML adopted

Quirks in the CSS color list

  • Seven grays have a second “grey” spelling, such as darkgrey for darkgray. Aqua and cyan are both #00ffff, and fuchsia and magenta are both #ff00ff.
  • The names are not always logical. The specification itself notes that darkgray (#a9a9a9) is lighter than gray (#808080), and lightpink is darker than pink.
  • CSS green is #008000, with the green channel at 128 of 255. Full-strength green, #00ff00, is named lime.
  • Purple is #800080, which shares its 300° hue with magenta. It is a darker magenta, not a blue-violet.
  • One slice per color. The All named colors palette keeps gray, cyan and magenta and leaves out grey, aqua and fuchsia, so no color gets 2 slices.
  • Typing is forgiving. Spaces, hyphens and capitals don't matter, so “Light Sea Green”, “light-sea-green” and “lightseagreen” all paint the same slice.
  • Labels that aren't color names, such as “Team blue”, take their color from the Weights, colors & images table. The result then shows that color's hex code.
See all 148 CSS named colors with their hex codes
  • aliceblue#f0f8ff
  • antiquewhite#faebd7
  • aqua#00ffff
  • aquamarine#7fffd4
  • azure#f0ffff
  • beige#f5f5dc
  • bisque#ffe4c4
  • black#000000
  • blanchedalmond#ffebcd
  • blue#0000ff
  • blueviolet#8a2be2
  • brown#a52a2a
  • burlywood#deb887
  • cadetblue#5f9ea0
  • chartreuse#7fff00
  • chocolate#d2691e
  • coral#ff7f50
  • cornflowerblue#6495ed
  • cornsilk#fff8dc
  • crimson#dc143c
  • cyan#00ffff
  • darkblue#00008b
  • darkcyan#008b8b
  • darkgoldenrod#b8860b
  • darkgray#a9a9a9
  • darkgreen#006400
  • darkgrey#a9a9a9
  • darkkhaki#bdb76b
  • darkmagenta#8b008b
  • darkolivegreen#556b2f
  • darkorange#ff8c00
  • darkorchid#9932cc
  • darkred#8b0000
  • darksalmon#e9967a
  • darkseagreen#8fbc8f
  • darkslateblue#483d8b
  • darkslategray#2f4f4f
  • darkslategrey#2f4f4f
  • darkturquoise#00ced1
  • darkviolet#9400d3
  • deeppink#ff1493
  • deepskyblue#00bfff
  • dimgray#696969
  • dimgrey#696969
  • dodgerblue#1e90ff
  • firebrick#b22222
  • floralwhite#fffaf0
  • forestgreen#228b22
  • fuchsia#ff00ff
  • gainsboro#dcdcdc
  • ghostwhite#f8f8ff
  • gold#ffd700
  • goldenrod#daa520
  • gray#808080
  • green#008000
  • greenyellow#adff2f
  • grey#808080
  • honeydew#f0fff0
  • hotpink#ff69b4
  • indianred#cd5c5c
  • indigo#4b0082
  • ivory#fffff0
  • khaki#f0e68c
  • lavender#e6e6fa
  • lavenderblush#fff0f5
  • lawngreen#7cfc00
  • lemonchiffon#fffacd
  • lightblue#add8e6
  • lightcoral#f08080
  • lightcyan#e0ffff
  • lightgoldenrodyellow#fafad2
  • lightgray#d3d3d3
  • lightgreen#90ee90
  • lightgrey#d3d3d3
  • lightpink#ffb6c1
  • lightsalmon#ffa07a
  • lightseagreen#20b2aa
  • lightskyblue#87cefa
  • lightslategray#778899
  • lightslategrey#778899
  • lightsteelblue#b0c4de
  • lightyellow#ffffe0
  • lime#00ff00
  • limegreen#32cd32
  • linen#faf0e6
  • magenta#ff00ff
  • maroon#800000
  • mediumaquamarine#66cdaa
  • mediumblue#0000cd
  • mediumorchid#ba55d3
  • mediumpurple#9370db
  • mediumseagreen#3cb371
  • mediumslateblue#7b68ee
  • mediumspringgreen#00fa9a
  • mediumturquoise#48d1cc
  • mediumvioletred#c71585
  • midnightblue#191970
  • mintcream#f5fffa
  • mistyrose#ffe4e1
  • moccasin#ffe4b5
  • navajowhite#ffdead
  • navy#000080
  • oldlace#fdf5e6
  • olive#808000
  • olivedrab#6b8e23
  • orange#ffa500
  • orangered#ff4500
  • orchid#da70d6
  • palegoldenrod#eee8aa
  • palegreen#98fb98
  • paleturquoise#afeeee
  • palevioletred#db7093
  • papayawhip#ffefd5
  • peachpuff#ffdab9
  • peru#cd853f
  • pink#ffc0cb
  • plum#dda0dd
  • powderblue#b0e0e6
  • purple#800080
  • rebeccapurple#663399
  • red#ff0000
  • rosybrown#bc8f8f
  • royalblue#4169e1
  • saddlebrown#8b4513
  • salmon#fa8072
  • sandybrown#f4a460
  • seagreen#2e8b57
  • seashell#fff5ee
  • sienna#a0522d
  • silver#c0c0c0
  • skyblue#87ceeb
  • slateblue#6a5acd
  • slategray#708090
  • slategrey#708090
  • snow#fffafa
  • springgreen#00ff7f
  • steelblue#4682b4
  • tan#d2b48c
  • teal#008080
  • thistle#d8bfd8
  • tomato#ff6347
  • turquoise#40e0d0
  • violet#ee82ee
  • wheat#f5deb3
  • white#ffffff
  • whitesmoke#f5f5f5
  • yellow#ffff00
  • yellowgreen#9acd32

Readable labels

Why some slices get black text and others white

Every slice the random color generator paints gets white text where it passes the WCAG contrast minimum, and black text everywhere else. WCAG 2.2 asks for 4.5:1 for normal text and 3:1 for large text.

Contrast of white and black text on the 12 Everyday colors
SliceWhite textBlack textLarge labelSmall label
Red4.0:15.3:1WhiteBlack
Orange2.0:110.6:1BlackBlack
Yellow1.1:119.6:1BlackBlack
Green5.1:14.1:1WhiteWhite
Teal4.8:14.4:1WhiteWhite
Blue8.6:12.4:1WhiteWhite
Purple9.4:12.2:1WhiteWhite
Pink1.5:113.7:1BlackBlack
Brown7.1:13.0:1WhiteWhite
Gray3.9:15.3:1WhiteBlack
Black21.0:11.0:1WhiteWhite
White1.0:121.0:1BlackBlack

Red shows the rule at work. White on red is 4.0:1, enough for a big label but not a small one, so red slices switch to black text when labels shrink on a crowded wheel. The popup swatch has an outline, so pale colors such as white, snow and ivory stay visible.

Ideas

When to let a color spinner choose

A random color generator works best where any of the options would be fine and somebody still has to decide.

  • Art and design prompts

    Paint a still life where the spun color leads, or build a 5-color scheme around it. Copy the hex code straight into your design app.

    All named colors

  • Teams and party tables

    Give each team, table or guest a color. Rainbow covers 7 groups, and Primary and secondary covers 6.

    RainbowPrimary and secondary

  • Color hunt

    Spin, start the Timer, and everyone finds something in the room in that color before it runs out. Everyday colors keeps to names kids know.

    Everyday colors

  • Paint and outfit shortlists

    Type the 3 paint names or hex codes you can’t choose between, then spin. Check a real paint sample before you buy.

    Your own colors

Language classes can spin 16 basic colors and name each result in Spanish or French. For a word game, spin a color here and a letter on the letter wheel, then name something that fits both, like green and G for grapes. For sketch subjects with a style, try the drawing prompt wheel. For choices that aren't colors, the decision wheel takes any list.

FAQ

Random color generator FAQ

How many colors are on the random color generator?

12 to start. The default Everyday colors wheel has 12, All named colors loads 139, and any wheel holds up to 10,000 entries.

How do I copy the hex code?

Press Copy in the result popup. The Copy hex button next to the last color does the same after the popup closes.

Does the result show RGB values too?

Yes. Every result shows the RGB value next to the hex code, such as rgb(255 99 71) for tomato.

Is this a color wheel picker like the one in design apps?

No. A design app’s color wheel picker lets you drag around a hue circle. This random color wheel picks one color for you from a list. The hue table on this page helps you choose by hue first.

Is gray the same as grey in CSS?

Yes. Both spellings give the same hex code, such as #808080 for gray and grey.

Why is CSS green darker than lime?

CSS green is #008000, with the green channel at 128 out of 255. The full-strength green, #00ff00, is named lime.

Can I add colors that are not CSS names?

Yes. Type any hex code with its # sign, such as #3a7bd5, and the slice takes that color.

Can two slices end up the same color?

Only if you add a color twice. No palette repeats a color, and All named colors skips second spellings such as grey and aqua.

Will the color look the same in paint?

No, not exactly. Screens differ, and paint changes with the light in the room, so check a real sample before you buy.

Last updated · Written and tested by Melissa T. Brown