We use essential cookies to make this site work. Optional analytics cookies help us improve your experience. Privacy Policy
Random Color Generator
Generate random color palettes with pastel, warm, cool, monochrome, complementary, triadic & tetradic modes. Lock swatches, export CSS/PNG/JSON. 100%.
How to use
Pick a palette mode — Choose Random, Pastel, Warm, Cool, Monochrome, or harmony rules.
Generate — Tap Generate or press Space to roll new colors.
Lock favorites — Lock any swatch to keep it while regenerating the rest.
Export — Copy CSS variables, download JSON, or save as PNG.
; a.click(); URL.revokeObjectURL(url); }); }; const modes: { value: Mode; label: string }[] = [ { value: "random", label: "Random" }, { value: "pastel", label: "Pastel" }, { value: "warm", label: "Warm" }, { value: "cool", label: "Cool" }, { value: "monochrome", label: "Monochrome" }, { value: "complementary", label: "Complementary" }, { value: "analogous", label: "Analogous" }, { value: "triadic", label: "Triadic" }, { value: "tetradic", label: "Tetradic" }, ]; const steps = [ { number: 1, title: "Pick a palette mode", description: "Choose Random, Pastel, Warm, Cool, Monochrome, or harmony rules." }, { number: 2, title: "Generate", description: "Tap Generate or press Space to roll new colors." }, { number: 3, title: "Lock favorites", description: "Lock any swatch to keep it while regenerating the rest." }, { number: 4, title: "Export", description: "Copy CSS variables, download JSON, or save as PNG." }, ]; const faqs = [ { question: "What's the difference between modes?", answer: "Random is pure RGB chaos. Pastel softens colors. Monochrome varies lightness of one hue. Complementary/Triadic/Tetradic use color theory rules." }, { question: "How do locked colors work?", answer: "Click the lock icon on a swatch — it'll stay the same when you regenerate the rest of the palette." }, { question: "Can I use the spacebar?", answer: "Yes. Press Space to instantly regenerate non-locked colors." }, { question: "Does it work offline?", answer: "Yes. After the first load it works without internet." }, ]; const relatedTools = [ { title: "Color Converter", href: "/tools/color-converter" }, { title: "Color Palette Generator", href: "/tools/color-palette-generator" }, { title: "Color Contrast Checker", href: "/tools/color-contrast-checker" }, { title: "CSS Gradient Generator", href: "/tools/css-gradient-generator" }, ]; const seoContent = "
Random Color Generator
Generate single colors or full palettes using color theory rules (complementary, triadic, analogous, tetradic) plus mood presets (pastel, warm, cool, monochrome). Lock swatches, export to CSS variables, JSON, or PNG.
"; return ( Random Color Generator
Privacy-first • Runs locally in your browser
Generate palettes with color theory rules. Lock swatches, export to CSS, JSON, or PNG. Press Space to regenerate.
A designer brainstorming a logo cycles through Analogous + Pastel modes, locks the two best swatches, then taps Space until the rest of the palette feels right — then exports as CSS variables straight into the project.
About Random Color Generator
Pure random RGB usually produces ugly mud — too much grey, too many oversaturated neons. This generator picks from designer-curated colour spaces (HSL with controlled saturation and lightness) so every refresh produces a usable colour ready to drop into your design.
Why Pure Random Looks Bad
HSL (Hue, Saturation, Lightness) and constrain saturation to 40–70% and lightness to 40–60% — every result feels deliberate." }} />
Format Choices
HEX (#3B82F6) — the de facto standard for CSS and design tools. RGB (rgb(59, 130, 246)) — equivalent, with the added option of
Frequently asked questions
What's the difference between modes?
Random is pure RGB chaos. Pastel softens colors. Monochrome varies lightness of one hue. Complementary/Triadic/Tetradic use color theory rules.
How do locked colors work?
Click the lock icon on a swatch — it'll stay the same when you regenerate the rest of the palette.
Can I use the spacebar?
Yes. Press Space to instantly regenerate non-locked colors.
Does it work offline?
Yes. After the first load it works without internet.
Related free tools
Text Shadow Generator — Design CSS text shadows with a visual editor and live preview.