RANDOM COLOR GENERATOR
Generate random colors with HEX, RGB, and HSL values. Nothing leaves your browser.
In short
Generate a grid of random colors with their HEX, RGB, and HSL values, and click any value to copy it. Pick how many colors to generate at once. Runs entirely in your browser.
#808080
#808080
#808080
#808080
#808080
#808080
How to generate random colors
- 1
Set how many random colors you want (up to 24).
- 2
Click Generate to get a fresh grid of colors.
- 3
Click any HEX, RGB, or HSL value under a swatch to copy it.
Questions
- How random are the colors?
- Each swatch picks a random red, green, and blue value from 0–255 using JavaScript's Math.random(), giving an even spread across the full 16.7-million-color RGB space — it's not restricted to a curated or "pretty" palette.
- What's the difference between HEX, RGB, and HSL here?
- They're the same color in three notations: HEX is the six-digit code used in CSS and design tools, RGB gives the red/green/blue channel values from 0–255, and HSL expresses the color as hue, saturation, and lightness — useful when you want to tweak brightness without changing the hue.
- Can I generate a color palette instead of individual colors?
- For colors that are designed to work together (complementary, analogous, etc.), use the Color Palette Generator — this tool is for pure random colors, useful for placeholder data, testing, or inspiration.
- Is anything sent to a server?
- No. Colors are generated and copied entirely in your browser — nothing is transmitted or stored.
Related tools
- Color Palette GeneratorPick a base color and a harmony, get five colors that work together.
- Color PickerPick a color and get it in hex, rgb, and hsl.
- CMYK ConverterConvert a color between HEX, RGB, and CMYK, all fields updating together.
- Color Blindness SimulatorPreview a color, palette, or image under protanopia, deuteranopia, tritanopia, and achromatopsia.
- Accessible Color Palette GeneratorGenerate a tint/shade scale from a base color with WCAG contrast ratios against black and white.
- Color Temperature ConverterConvert a color temperature in Kelvin to RGB/HEX, with common light-source presets.
- CSS Border GeneratorBuild a border with per-corner radius and copy the CSS.
- CSS Clamp GeneratorBuild a fluid clamp() value that scales between a min and max size.
Updated