Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Random Color Generator

Random Color Generator

Generate random colors with customizable constraints. Choose from presets like pastel, vivid, or neon, or fine-tune hue, saturation, and lightness ranges.

What is Random Color Generator?

Random Color Generator is a powerful tool that creates random colors based on your specific preferences. Unlike basic random generators, this tool gives you complete control over the type of colors you generate through intelligent presets and custom HSL (Hue, Saturation, Lightness) ranges.

Color Presets

Choose from Any, Pastel, Vivid, Dark, Light, Muted, or Neon to get colors matching a specific style

Custom HSL Ranges

Fine-tune hue, saturation, and lightness ranges for precise control over generated colors

Multi-Color Generation

Generate 1 to 100 colors at once with flexible quantity options

Lock Colors

Keep colors you like while regenerating others to build perfect palettes

Favorites

Save colors for later use, persisted in your browser across sessions

Multiple Formats

Copy colors as HEX, RGB, or HSL with one-click CSS variable export

Who Is This For?

Web Designers

Quickly explore color options for websites and applications

UI/UX Designers

Generate cohesive color palettes for user interfaces

Graphic Designers

Find inspiration for illustrations and graphics projects

Developers

Get color values in the exact format you need (HEX, RGB, HSL)

Creative Professionals

Anyone who needs random colors for creative projects

How to Use Random Color Generator

Basic Usage

1

Generate Colors

Click the Generate button or press Space to create random colors instantly

2

Choose a Preset

Select from Any, Pastel, Vivid, Dark, Light, Muted, or Neon to control the color style

3

Select Quantity

Click 1, 5, 10, 20, or enter a custom number (1-100) to generate multiple colors

4

Copy Color Values

Click any color value to copy it to your clipboard in HEX, RGB, or HSL format

Using Presets

Presets automatically adjust the HSL ranges to produce specific color styles, making it easy to generate colors that match your design needs:

Any

Full range, completely random colors with no restrictions

Pastel

Soft, light colors with low saturation (25-60%) and high lightness (70-90%)

Vivid

Bright, saturated colors (80-100%) that pop with medium lightness (45-65%)

Dark

Deep, low-lightness colors (15-35%) with moderate saturation (30-70%)

Light

Very light, airy colors with high lightness (85-95%) and low saturation (20-50%)

Muted

Subdued, desaturated colors (10-30%) with balanced lightness (40-60%)

Neon

Highly saturated (90-100%), glowing colors with medium lightness (50-60%)

Custom HSL Ranges

For precise control over your generated colors, use the advanced HSL range sliders:

1

Open Advanced Panel

Click the settings icon to access the HSL range controls

2

Adjust Ranges

Drag the slider handles to set minimum and maximum values for each parameter:

  • Hue (0-360°) - The color itself (red, green, blue, etc.)
  • Saturation (0-100%) - Color intensity from gray to pure color
  • Lightness (0-100%) - How light or dark the color appears
3

Reset if Needed

Click Reset to return to default ranges at any time

Pro Tip: Use narrow hue ranges (e.g., 180-240°) to generate colors within a specific color family like blues and cyans, perfect for creating harmonious color schemes.

Locking Colors

When generating multiple colors, the lock feature helps you build the perfect palette incrementally:

  • Click the lock icon on any color card to preserve it
  • Locked colors remain unchanged when you generate new colors
  • Click the lock icon again to unlock and allow regeneration
  • Build your palette one color at a time by locking favorites

Managing Favorites

Save and organize colors you love for future use:

Add to Favorites

Click the heart icon on any color to save it to your favorites collection

Copy a Favorite

Click on any favorite swatch to instantly copy its HEX value

Remove from Favorites

Click the X on any swatch to remove it from your collection

Export Favorites

Click the download icon to copy all favorites as CSS variables

Clear All

Click the trash icon to remove all favorites at once
Persistent Storage: Your favorites are stored in your browser's local storage and will be available every time you return to the tool.

Copying Colors

The tool provides multiple format options for maximum compatibility with your workflow:

Single Color View

All Formats Available

Click any format to copy:

  • HEX - #FF5733
  • RGB - rgb(255, 87, 51)
  • HSL - hsl(14, 100%, 60%)
Multiple Colors View

Quick Copy

Features include:

  • Click any color card to copy HEX value
  • Use Copy All for CSS variables
  • Export all colors at once

Keyboard Shortcuts

Speed up your workflow with these keyboard shortcuts:

  • Press Space to generate new colors instantly
  • Press Tab to navigate between controls efficiently

Features

Color Presets

Seven intelligently designed presets help you quickly generate colors matching specific aesthetic styles:

Preset Saturation Range Lightness Range Best For
Any 0-100% 0-100% Complete randomness, exploration
Pastel 25-60% 70-90% Soft backgrounds, gentle designs
Vivid 80-100% 45-65% Eye-catching accents, CTAs
Dark 30-70% 15-35% Dark themes, dramatic effects
Light 20-50% 85-95% Subtle backgrounds, minimalist designs
Muted 10-30% 40-60% Professional interfaces, text-heavy content
Neon 90-100% 50-60% Glowing effects, modern designs

HSL Range Sliders

The advanced panel provides precise control over generated colors through three independent parameters:

Hue Range

Set the color spectrum (0-360°)

  • 0° = Red
  • 120° = Green
  • 240° = Blue
  • Full circle returns to red

Saturation Range

Control color intensity (0-100%)

  • 0% = Grayscale
  • 50% = Moderate intensity
  • 100% = Pure, vivid color

Lightness Range

Adjust brightness (0-100%)

  • 0% = Black
  • 50% = True color
  • 100% = White

Multi-Color Generation

Generate anywhere from 1 to 100 colors at once with flexible viewing options:

Single Color

Large preview with all format values (HEX, RGB, HSL) displayed prominently

Multiple Colors

Grid view with quick-copy HEX values and lock functionality

Custom Count

Enter any number between 1 and 100 for precise control

Color Locking

In grid view, lock individual colors to keep them while regenerating others. This feature is perfect for:

  • Building a palette one color at a time
  • Finding complementary colors for existing selections
  • Experimenting with variations while keeping key colors
  • Creating cohesive color schemes incrementally

Favorites System

Save and manage colors you love with the built-in favorites system:

Persistent Storage: Favorites are stored in your browser's local storage and persist across sessions. They remain available until you clear your browser data or manually remove them.
  • Click any favorite to copy its HEX value instantly
  • Export all favorites as CSS variables for easy integration
  • Organize your color library across multiple projects
  • Build a personal color palette over time

CSS Variables Export

Export colors as ready-to-use CSS custom properties, perfect for modern web development workflows:

CSS Variables Output
:root {
  --color-1: #FF5733;
  --color-2: #33FF57;
  --color-3: #3357FF;
  --color-4: #F3FF33;
  --color-5: #FF33F3;
}

Use these variables throughout your stylesheet for consistent, maintainable color management:

Usage Example
.button-primary {
  background-color: var(--color-1);
  color: white;
}

.heading {
  color: var(--color-3);
}

Keyboard Shortcuts

Enhance your productivity with convenient keyboard shortcuts:

Space

Generate New Colors

Quickly generate a new set of colors without reaching for your mouse
Tab

Navigate Controls

Move between controls efficiently for keyboard-only navigation

Frequently Asked Questions

What color formats are supported?

The tool displays colors in three industry-standard formats:

  • HEX - #FF5733 (most common for web design)
  • RGB - rgb(255, 87, 51) (red, green, blue values)
  • HSL - hsl(14, 100%, 60%) (hue, saturation, lightness)

Click any value to copy it to your clipboard instantly.

How do I generate colors in a specific hue range?

Open the advanced panel by clicking the settings icon, then use the Hue slider to set your desired range:

  • 0-60° - Reds and oranges
  • 60-180° - Yellows and greens
  • 180-240° - Blues and cyans
  • 240-360° - Purples and magentas

This is perfect for creating monochromatic or analogous color schemes.

Can I save colors for later?

Yes! Click the heart icon on any color to add it to your favorites. Favorites are saved in your browser's local storage and will be there when you return.

Bonus: You can also export all favorites as CSS variables for easy integration into your projects.

How do I keep some colors while changing others?

When viewing multiple colors, click the lock icon on colors you want to keep. Locked colors remain unchanged when you generate new colors.

This feature is ideal for:

  • Building a palette incrementally
  • Finding complementary colors
  • Experimenting with variations

Click the lock icon again to unlock and allow regeneration.

What does each preset do?

Any

No restrictions, completely random colors across the full spectrum

Pastel

Soft, light colors ideal for backgrounds and gentle designs

Vivid

Bright, eye-catching colors perfect for accents and CTAs

Dark

Deep colors for dark themes and dramatic effects

Light

Very light colors for subtle backgrounds and minimalist designs

Muted

Subdued colors that don't overwhelm, great for professional interfaces

Neon

Highly saturated, glowing colors for modern, energetic designs

How do I export colors for my CSS?

There are two ways to export colors as CSS variables:

  • Current colors: Click the "Copy All" button to copy all currently displayed colors
  • Favorites: Click the download icon in the favorites section to export your saved colors

The output format is ready to paste into your CSS:

CSS Variables Format
:root {
  --color-1: #HEXCODE;
  --color-2: #HEXCODE;
  --color-3: #HEXCODE;
}

Why do my favorites disappear?

Favorites are stored in your browser's local storage. They may be cleared if you:

  • Clear your browser data or cache
  • Use private/incognito mode
  • Switch to a different browser
  • Use a different device
Best Practice: Export your favorites regularly using the download icon if you want to keep them long-term or use them across devices.

Is my data private?

Yes, completely. All color generation happens entirely in your browser using JavaScript. No data is sent to any server.

Privacy Guarantee: Your favorites are stored locally on your device. We have no access to your data, and nothing leaves your browser.

Can I generate more than 20 colors?

Yes! Enter any number from 1 to 100 in the custom input field next to the preset buttons. This is useful for:

  • Creating large color palettes
  • Generating color variations for data visualization
  • Exploring a wide range of options at once
  • Building comprehensive design systems

What is HSL?

HSL stands for Hue, Saturation, and Lightness - a color model that's often more intuitive than RGB for designers:

Hue (0-360°)

The color on the color wheel

  • 0° / 360° = Red
  • 120° = Green
  • 240° = Blue

Saturation (0-100%)

How vivid or gray the color is

  • 0% = Grayscale
  • 100% = Pure color

Lightness (0-100%)

How light or dark the color is

  • 0% = Black
  • 50% = True color
  • 100% = White
Why HSL? HSL makes it easier to create color variations (lighter/darker versions) and harmonious color schemes compared to RGB values.
0° - 360°
0% - 100%
0% - 100%
Favorites
No favorites yet
Press Space to quickly generate new colors
Use presets (Pastel, Vivid, Neon...) for specific color styles
Click the lock icon to keep colors while regenerating others
Click any color value to copy it instantly
Copy All exports colors as CSS variables
All processing happens in your browser
Want to learn more? Read documentation →
1/7
Start typing to search...
Searching...
No results found
Try searching with different keywords