Generate random colors and get each one's HEX, RGB, and HSL values ready to copy. Free, and entirely in-browser. Random color exploration is a legitimate design technique: when a palette feels stale, a few random draws break the habit loop of picking the same blues, and seeing each color in three notations at once means the value you copy matches the format your CSS, design tool, or framework expects. The table shows the same color expressed in each notation, so the formats are easy to map to each other.
| Notation | Example |
|---|---|
| HEX | #7C3AED |
| RGB | rgb(124, 58, 237) |
| HSL | hsl(262, 83%, 58%) |
Colors are generated using your browser's built-in random number generator, producing truly random RGB values that are then converted to HEX and HSL formats.
Each color is displayed in HEX, RGB, and HSL formats. You can click to copy any format to your clipboard.
Yes! Click the lock icon on any color to keep it when you regenerate. Only unlocked colors will change.
Color generation operates in multiple color spaces depending on your requirements. Pure random RGB colors are created by generating three independent bytes (0-255) for red, green, and blue channels using crypto.getRandomValues() for uniform distribution. For visually pleasing palettes, the generator works in HSL space where hue is randomized across the 360° spectrum while saturation and lightness are constrained to perceptually balanced ranges (typically 60-90% saturation, 45-65% lightness). The Golden Ratio method spaces hues using φ ≈ 0.618 to ensure colors are aesthetically distinct. Generated colors are displayed as swatches with HEX, RGB, and HSL notations, and palette exports support CSS variables, JSON, or SCSS format.