Random Color Generator
Generate one random color or a 5-color random palette with HEX, RGB, and HSL values for CSS, design mockups, and test data.
Generate random CSS colors
Use this random color generator when you need a quick HEX value, a temporary UI color, a design prompt, a placeholder swatch, or random color test data.
- Generate 1 color or a 5-color random palette.
- Filter colors by any, light, dark, pastel, vivid, warm, or cool.
- Copy HEX, RGB, or HSL values.
- Use history to return to recent colors from the current session.
HEX, RGB, and HSL formats
All three formats describe the same color in CSS-friendly ways. HEX is compact, RGB is channel-based, and HSL is useful when thinking about hue, saturation, and lightness.
| Format | Example | Common use |
|---|---|---|
| HEX | `#3b82f6` | CSS, design tools, tokens |
| RGB | `rgb(59, 130, 246)` | Channel-based code and data |
| HSL | `hsl(217, 91%, 60%)` | Hue and lightness adjustments |
Randomness and accessibility
Color categories are generated through HSL ranges. A pastel result, for example, narrows saturation and lightness so the color feels softer than a fully random RGB pick.
Frequently Asked Questions
Sources and References
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Generate 5-color palettes from a base HEX color with monochromatic, analogous, complementary, triadic, tetradic, and random harmony modes.
Create linear, radial, and conic CSS gradients with live preview, color stops, angle or position controls, presets, and copy-ready CSS.