Random Color Generator

Generate a random HEX color, keep the palette swatches you like, and copy a two-color CSS linear gradient. Values are chosen in your browser after the page loads.

Press Space to regenerate the color, unlocked palette swatches, and the gradient.

Random color

A random HEX color appears here after the page loads in your browser.

Random palette

Five colors. Lock a swatch to keep it, then generate the rest again.

Five random colors appear here after the page loads in your browser.

Random linear gradient

Two colors and one angle. Copy the CSS, or open it in the gradient generator to add stops.

A two-color linear gradient appears here after the page loads in your browser.

Color tools

Palettes, gradients, accessibility checks, and print-ready conversions — all in one place.

What to do with a random color

A random color is a starting point. Read the HEX, RGB, HSL, and CMYK values on this page, then decide whether the color is a button, a surface, or something you should discard. For the reasoning behind that review, read how to use random colors, palettes, and gradients.

Harmony rules live in the palette generator. A Tailwind-style ramp lives in the tint and shade generator. Screen notations are compared in HEX vs RGB vs HSL, and the difference between paint, light, and ink primaries is in primary colors.

FAQ

Frequently asked questions

Questions about this random color generator.

What is a random color generator?
A random color generator picks red, green, and blue channel values and shows them as a HEX code. This page also shows the same color as RGB, HSL, and CMYK, using the same conversion used by the other Color Mapper tools.
Can I generate a palette instead of one color?
Yes. The palette section shows five random colors. Lock a swatch to keep it, then generate again to replace only the unlocked colors. You can copy the five HEX values or a small CSS custom-property block.
How do I copy the CSS gradient?
The gradient section builds a two-color linear-gradient and a copy button for the background declaration. For radial or conic gradients, or more than two stops, open the CSS gradient generator.
Does the space bar generate a new color?
Yes. Press space to regenerate the single color, the unlocked palette swatches, and the gradient. Space is ignored while you are typing in a field.
Why do only some colors link to a color page?
Pages at /color/HEX exist for colors in the named color index. When a result matches one of those colors, its HEX links there. Every result can still be copied as HEX, RGB, HSL, and CMYK.