Random Color Generator

#000000
Tap here or press Generate

Color values

Tap any value to copy it.

Matching palette

Tap a swatch to make it your main color.

    Text contrast

    Saved colors

      Nothing saved yet. Use Save Color to keep your favorites.

      What Is a Random Color Generator?

      A random color generator gives you a new color each time you click. It is useful when you need a fresh idea and don’t want to pick from a color wheel.

      This tool does more than show a random color. It gives you the color codes, builds a matching palette, and checks how readable text will be on that color. You can use it to find a color, copy its code, and put it straight into your project.

      How to Use the Random Color Generator

      1. Click Generate. You can also click or tap the large color preview. A new color appears with its HEX code.
      2. Pick a color style (optional). Choose Vivid, Pastel, Light, Dark or Muted to narrow the results. Leave it on “Any color” for full variety.
      3. Choose a copy format. Select HEX, RGB, HSL or CMYK. This sets what the Copy Color button copies.
      4. Copy or save. Click Copy Color to copy the code. Click Save Color to keep it for later.
      5. Look at the palette. Scroll down to see five matching colors. Click any swatch to make it your main color.

      Features

      Color Styles

      The style menu changes what kind of color you get.

      • Any color: A wide mix of light, dark, bright and soft colors.
      • Vivid: Strong, saturated colors.
      • Pastel: Soft, light colors.
      • Light: Bright colors with a high lightness value.
      • Dark: Deep colors with a low lightness value.
      • Muted: Gentle, less saturated colors with a calm look.

      Four Color Formats

      Every color is shown in four formats. Click any value to copy it.

      • HEX (for example #4080BF) is common in websites, CSS and design tools.
      • RGB (for example rgb(64, 128, 191)) lists the red, green and blue values.
      • HSL (for example hsl(210, 50%, 50%)) describes hue, saturation and lightness. It is easy to adjust by hand.
      • CMYK is a cyan, magenta, yellow and black value often used as a starting point for print work.

      Matching Palettes

      Each color comes with a five-color palette. Pick one of six palette types:

      • Analogous: Colors that sit next to each other on the color wheel. They look calm and natural together.
      • Complementary: Your color plus its opposite on the wheel. This gives strong contrast.
      • Triadic: Three colors spaced evenly around the wheel. This is balanced but lively.
      • Tetradic: Four colors spaced around the wheel, plus a lighter version of your main color.
      • Shades: The same hue from darker to lighter.
      • Monochrome: The same hue with changes in lightness and saturation.

      Use Copy Palette to copy all five colors at once, in the format you selected.

      Text Contrast Checker

      Below the palette, the tool shows how white text and black text look on your color. It also gives the contrast ratio and a rating: AAA, AA, AA Large or Fail. The ratings follow the contrast levels in the Web Content Accessibility Guidelines (WCAG), which are 4.5:1 for normal text and 3:1 for large text. A ratio of 7:1 is the stricter AAA level.

      Saved Colors

      Save up to 24 colors. Click a saved color to bring it back. Use Clear Saved to remove them all.

      Saved colors are stored in your own browser. They stay on your device. If you clear your browser data or switch devices, they will be gone.

      Who Can Use This Tool?

      • Web designers and developers can find accent colors, button colors and background ideas, and copy the code straight into CSS.
      • Graphic designers can use random colors to break out of a creative rut and get a quick starting palette.
      • Bloggers and site owners can try new colors for banners, buttons and headings.
      • Artists and hobbyists can use random colors as prompts for drawing, painting or crafts.
      • Teachers and students can use the HEX, RGB, HSL and CMYK values to learn how color models work.
      • Game and app makers can generate quick placeholder colors during design.

      Tips for Getting Better Results

      • Use the style filter when you have a mood in mind. Pastel suits soft, friendly designs. Dark works well for backgrounds. Vivid grabs attention.
      • Generate many times. Random tools work best when you look at many results. Save the ones you like instead of trying to remember them.
      • Check contrast before you commit. A color can look great but still make text hard to read. Pay attention to the Fail rating.
      • Start with Analogous for a safe palette. Complementary and Tetradic give bolder results, but they need more care in how you use each color.
      • Use one main color and let the others support it. Many designs look best when one color leads and the rest play a smaller role.
      • Try HSL when you want to adjust a color. If a color is almost right, change only its lightness or saturation to fine-tune it.

      Things to Keep in Mind

      • Screens differ. The same HEX code can look slightly different on different displays.
      • CMYK values are estimates. They are converted from the screen color using a standard formula. Printed colors depend on your printer, paper and color profile, so check with your print provider for important jobs.
      • The contrast checker covers white and black text only. If you use another text color, test that pair separately.
      • Palettes are suggestions, not rules. They are built with color wheel math from your main color. Your own eye should have the final say.
      • Random does not mean one-of-a-kind. Many people can generate the same or very similar colors.

      Frequently Asked Questions

      How do I copy a color code?

      Click Copy Color to copy the code in your chosen format. You can also click any value in the “Color values” list to copy that exact format.

      What is the difference between HEX, RGB and HSL?

      They describe the same color in different ways. HEX is a short code like #4080BF. RGB uses three numbers for red, green and blue. HSL uses hue, saturation and lightness, which is often easier for making small changes.

      Can I use the generated colors for commercial projects?

      Colors themselves are simple values, such as a HEX code, so you can use the ones this tool gives you in your own projects. If you are working on a brand or logo, it is wise to check that the color is not too close to another brand’s protected identity.

      Why does the color preview text change between black and white?

      The tool chooses whichever one has the higher contrast with the color. This keeps the code easy to read on both light and dark colors.

      Why did my saved colors disappear?

      Saved colors are kept in your browser. They can disappear if you clear your browsing data, use private browsing, or open the tool on another device or browser.

      What do AAA, AA, AA Large and Fail mean?

      They show how readable text is on your color. AAA is the strongest level (7:1 or higher). AA is good for normal text (4.5:1 or higher). AA Large is acceptable only for large text (3:1 or higher). Fail means the contrast is too low for text.

      Can I get a palette with more or fewer than five colors?

      Not at the moment. Each palette has five colors. You can click any swatch to make it the main color and build a new palette from it.