Random Color Generator
Generate random colours with HEX, RGB, HSL, and HSB values. Build harmonious 5-colour palettes using complementary, analogous, triadic, and monochromatic modes. Lock swatches, adjust lightness, and export as CSS variables, Tailwind config, or SCSS. Free. No sign-up.
#4A90D9rgb(74, 144, 217)hsl(211, 65%, 57%)How it works
- 1Choose your mode
Select Single Colour for one random colour with full format details, or Palette to generate a harmonious 5-colour set.
- 2Pick a harmony and generate
In palette mode, choose complementary, analogous, triadic, split-complementary, monochromatic, or random, then click Generate.
- 3Lock, adjust, and export
Lock colours you like, tweak lightness with the slider, and export as CSS variables, Tailwind config, SCSS, JSON, or plain text.
Colour Theory Fundamentals
Colour theory is the foundation of every design decision. The colour wheel, first formalised by Isaac Newton in 1666, arranges hues in a circle so that mathematically related colours โ those that harmonise naturally โ sit at predictable positions. Modern design tools use HSL (Hue, Saturation, Lightness) coordinates to navigate this wheel programmatically. A hue of 0ยฐ is red, 120ยฐ is green, and 240ยฐ is blue. Complementary pairs sit 180ยฐ apart, triadic sets are spaced at 120ยฐ intervals, and analogous groups cluster within 30ยฐ of each other.
Designing with Harmonious Palettes
A well-chosen palette does more than look attractive โ it communicates mood, hierarchy, and brand identity. Monochromatic palettes convey elegance and simplicity, making them popular in luxury branding. Complementary palettes create energy and draw the eye, which is why sports brands and fast-food logos favour them. Analogous schemes feel natural and serene, commonly used in wellness and nature-oriented sites. The key is intentionality: choose a harmony mode that matches the emotion you want to evoke.
Colour Accessibility in Web Design
Approximately 8% of men and 0.5% of women have some form of colour vision deficiency. WCAG 2.1 guidelines mandate a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. When building palettes, always test text-on-background pairs against these ratios. Avoid conveying information through colour alone โ use icons, patterns, or labels alongside colour coding. Tools like this generator help by showing HSL values so you can ensure sufficient lightness differences between foreground and background colours.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.