Random Color Generator
Create beautiful random color palettes with 12 generation modes. Lock colors, check WCAG contrast, and export in multiple formats including CSS, SCSS, JSON, Tailwind, and PNG.
How to Use the Color Generator
Create professional color palettes instantly with 12 different generation modes. Lock individual colors to preserve them while regenerating others, and export your palette in multiple developer-friendly formats.
- Choose a color mode from 12 options (Random, Monochromatic, Analogous, etc.)
- Adjust palette size from 1 to 8 colors using the slider
- Click any color swatch to lock/unlock it (locked colors won't change when regenerating)
- Press Spacebar or click Generate to create a new palette
- Enable WCAG checker to see contrast ratios for accessibility compliance
- Each swatch displays HEX, RGB, and HSL values - click to copy
- Export your palette as CSS, SCSS, JSON, Tailwind classes, or PNG image
Color Modes Explained
Random: Completely random colors with no relationship. Creates diverse, eye-catching palettes with maximum variety.
Monochromatic: Variations of a single hue with different saturation and lightness. Creates harmonious, sophisticated palettes perfect for minimalist designs.
Analogous: Colors adjacent on the color wheel (e.g., blue, blue-green, green). Creates serene, comfortable designs with natural harmony.
Complementary: Colors opposite on the color wheel (e.g., blue and orange). Creates high contrast and visual vibration, ideal for making elements stand out.
Triadic: Three colors evenly spaced on the color wheel (e.g., red, yellow, blue). Offers vibrant, balanced palettes with strong visual contrast.
Tetradic (Square): Four colors evenly spaced on the color wheel. Provides the most color variety while maintaining harmony, ideal for complex designs.
Warm Colors: Reds, oranges, yellows - colors associated with warmth, energy, and passion. Perfect for creating inviting, energetic designs.
Cool Colors: Blues, greens, purples - colors associated with calmness and professionalism. Ideal for corporate, tech, and healthcare designs.
Pastel: Soft, low-saturation colors with high lightness. Creates gentle, soothing palettes perfect for feminine, youthful, or spring-themed designs.
Vibrant: High-saturation, intense colors that pop. Ideal for modern, energetic designs targeting younger audiences or entertainment brands.
Dark: Low-lightness colors perfect for dark mode interfaces, sophisticated branding, or creating dramatic contrast.
Light: High-lightness colors ideal for minimalist designs, backgrounds, or creating airy, spacious feels.
WCAG Contrast Ratios
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for text readability:
- AAA Large Text: 3:1 ratio (18pt+ regular or 14pt+ bold)
- AA Large Text: 3:1 ratio
- AA Normal Text: 4.5:1 ratio (default body text)
- AAA Normal Text: 7:1 ratio (enhanced accessibility)
Enable the WCAG checker to see which color combinations meet accessibility standards. Higher contrast ratios improve readability for users with visual impairments, low-vision conditions, or when viewing in bright sunlight.
Export Format Guide
CSS Variables: Exports as custom properties (--color-1, --color-2, etc.) ready to paste into your :root selector.
SCSS Variables: Exports as Sass variables ($color-1, $color-2, etc.) for use in .scss files.
JSON: Exports as a JSON array with hex, rgb, and hsl values for each color. Perfect for importing into design tools or JavaScript applications.
Tailwind: Generates Tailwind CSS configuration with color definitions ready to paste into your tailwind.config.js file.
PNG: Downloads a PNG image showing all colors as horizontal swatches with their hex codes, perfect for presentations or design handoffs.