Random Color Generator

Generate a random color with one click. Each color comes with its hex, RGB, and HSL codes ready to copy into your design tool, CSS, or art project. Great for breaking creative blocks, finding unexpected palettes, or just exploring the full range of 16.7 million possible colors.

Click to generate

About This Random Color Generator

Every click picks a completely random color from the full 24-bit RGB spectrum — that's 16,777,216 possible colors, each equally likely. The generator displays the color as a large swatch along with three standard code formats: hex (used in CSS and design tools), RGB (red, green, blue values from 0–255), and HSL (hue, saturation, lightness). Click any code to copy it to your clipboard.

Common Uses for Random Colors

  • Design inspiration: Discover color combinations you'd never pick on purpose
  • Web development: Grab quick placeholder colors for prototypes and mockups
  • Art challenges: Limit your palette to randomly generated colors
  • Games and activities: Assign random colors to players or teams
  • Learning color theory: See how hex, RGB, and HSL values relate to actual colors

Understanding Color Codes

A hex code like #3A7BD5 encodes red, green, and blue as pairs of hexadecimal digits. RGB expresses the same values in decimal, like rgb(58, 123, 213). HSL describes the color by hue (position on the color wheel, 0–360°), saturation (how vivid it is), and lightness — often the most intuitive format for tweaking a color once you've found one you like.

Frequently Asked Questions

How many colors can this generator produce?

The generator picks from the full 24-bit RGB color space, which contains 16,777,216 distinct colors. Every color is equally likely, so each click can produce anything from a subtle pastel to a vivid neon.

What color code formats are provided?

Each generated color is shown in three standard formats: hex (like #3A7BD5, used in CSS and design tools), RGB (red, green, and blue values from 0 to 255), and HSL (hue, saturation, and lightness). Click any code to copy it to your clipboard.

How do I copy a color code?

Click on any of the displayed codes — hex, RGB, or HSL — and it is copied to your clipboard automatically. A 'Copied!' confirmation appears so you know it worked.

What can I use random colors for?

Random colors are great for sparking design ideas, picking placeholder colors during development, running art challenges with a constrained palette, assigning colors to players or teams in games, and learning how hex, RGB, and HSL values map to real colors.