Names and codes
Every color comes with its closest name and its HEX, RGB, HSL and CMYK values, ready to copy.
Use this random color generator to get a color or a full palette with HEX, RGB, HSL and CMYK codes, its name and a contrast check. Press the space bar for new colors.
Tap the code to copy
Tints and shades
Recent colors
Color codes
Text contrast (WCAG)
Preview on a design
New collection
Colors that tell your story
See how your palette works for headings, buttons, cards and highlights before you use it.
Export
Saved palettes
Save palettes you like. They stay in this browser.
Every color comes with its closest name and its HEX, RGB, HSL and CMYK values, ready to copy.
See the WCAG contrast ratio for white and black text, and how a palette looks with three types of color blindness.
Your palette is applied to a sample web page, so you can judge it on buttons, headings and cards, not just swatches.
Analogous, complementary, triadic, square and monochrome palettes in any mood, from soft pastels to neon.
Get a random photo to sit beside your palette as inspiration.
Stuck between design options? Add them and pick one at random.
Let the wheel decide who presents or who chooses the next color.
Need a name for a character or pet to go with your colors?
Need numbers too? Get one in any range, or a list with no repeats.
Let a random country and its flag inspire your next color scheme.
A random color generator picks a color by chance from the 16,777,216 colors a screen can show. Use it when you want a fresh idea, a surprise for a project or a way to break out of your usual choices. (In the UK and elsewhere, you may know this as a random colour generator or colour picker. It's the same tool.)
Each result comes with its closest color name, its HEX, RGB, HSL and CMYK codes, and a contrast check, so you can use it straight away.
Fully random colors can look muddy. Choose a mood or a color family to get results that suit your project. Each link opens the generator with that setting.
Switch to Palette for a set of colors that work together. Choose how many colors you want and a harmony such as analogous, complementary or triadic. Lock the shades you love, then generate again to replace only the rest.
When you are happy, check the palette on a sample web page, test it for color blindness, and export it as CSS, Tailwind, JSON or PNG.
| Code | What it means | Example | Best for |
|---|---|---|---|
| HEX | Red, green and blue written as a six-character code | #4F46E5 | Websites and design tools |
| RGB | Red, green and blue, each from 0 to 255 | rgb(79, 70, 229) | Screens and code |
| HSL | Hue, saturation and lightness | hsl(243, 75%, 59%) | Adjusting a color by eye |
| CMYK | Cyan, magenta, yellow and black ink | cmyk(66, 69, 0, 10) |
A random color picker isn't only for designers. Try it for:
Developers often search for a one-line random HEX color. These work, although simple code cannot control mood or contrast:
| Language | Code |
|---|---|
| JavaScript | '#' + Math.floor(Math.random() * 0x1000000).toString(16).padStart(6, '0') |
| Python | f"#{random.randrange(0x1000000):06x}" |
Press New color or the space bar. Pick a mood such as pastel or vivid, or a hue family such as blue, to narrow the result. Tap any code to copy it.
Tap the lock on that swatch. Locked colors stay when you generate again, and the harmony is built around the first locked color.
They are WCAG accessibility levels for text contrast. AA needs a ratio of at least 4.5:1 for normal text, and AAA needs 7:1. The generator shows whether white or black text passes on each color.
Yes. Choose protanopia, deuteranopia or tritanopia under Vision to see how the palette and preview look to people with those types of color blindness.
Copy it as CSS variables, a Tailwind colors object or JSON, download it as a PNG image, or share a link to the exact palette.
Standard screens can show 16,777,216 colors, which is 256 levels each of red, green and blue. With Any mood, the generator favours colors that are easy to see, rather than near-black or near-white.
It is a six-character code that describes a color on screen, for example #FF0000 for pure red. The pairs of characters set the red, green and blue levels.
Yes. Each color shows the closest named color, so a code like #4F46E5 is easier to talk about and remember.
Yes. Set Mood to Pastel. You can do the same for neon, vivid, dark, muted and earthy colors.
It generates colors with a button rather than a spinning wheel. To spin a wheel of color names, add them to the Random Name Picker.
Each color shows its WCAG contrast score against white and black text, and palettes can be tested for three types of color blindness.
Try the Random Image Generator for photos in any size, or browse all tools.