Color Tools

Random Color Generator with Color Wheel

Press a button, or the spacebar, and get a new set of random colors. Lock the ones you like and re-roll the rest. Each color shows its HEX, RGB and HSL values, and the whole palette can be copied as code or saved as an SVG file. Palettes are generated in your browser.

Colors: 6
CSS Variables
:root {

}
Tailwind CSS
colors: {

}
React Array
export const palette = [];
Flutter / Dart

UI Mockup Live Preview

Sample UI Card Element
WCAG AA Passed

Why use this tool?

Why use this tool?

Picking colors for a site or an app often means jumping between a color picker, a converter and a text editor. Here you can generate colors, copy them in the format you need, and see them on a small mockup in one place. The colors are random, so this tool suits exploring and getting ideas. It does not build a palette from color rules.

How to use it

How to use it

  1. Step 1

    Choose how many colors

    Use the Colors slider, or the - and + buttons, to pick a number from 2 to 10.
  2. Step 2

    Generate and lock

    Click Generate Random or press the spacebar. Click the lock icon on any color you want to keep, then generate again.
  3. Step 3

    Copy single values

    Click the HEX, RGB or HSL line on a card to copy that value.
  4. Step 4

    Copy code or download the SVG

    Open Developer Code and press Copy next to the format you need. Or open Designer Assets and download the SVG.

What this tool does

It creates a palette of random colors, between 2 and 10 at a time. Every color is picked at random from all possible HEX values. Each color appears as a swatch card with its HEX, RGB and HSL values. Click a value to copy it. You can then copy the palette as code or download it as an SVG file.

Why use a random generator

Random colors are useful when you have no starting point. You can press the spacebar a few times and see which combinations catch your eye. When one color looks right, lock it and keep re-rolling the others around it. Because the colors are not matched by any rule, some results will clash. Just generate again.

Palette mode and the color wheel

Palette mode shows the swatch cards. Color Wheel mode adds a round color wheel above them. Each color in your palette is drawn as a small dot on the wheel. The dot's angle is the color's hue, and its distance from the center is the saturation. The wheel does not show lightness, so two colors with the same hue and saturation but different lightness land on the same spot.

Locking, replacing and changing the number of colors

Click the lock icon on a card to keep that color when you generate a new palette. The refresh icon on a card replaces only that one color. The slider, or the - and + buttons, set the number of colors from 2 to 10. A new palette starts with 6 colors. If you increase the number, new colors are added. If you decrease it, colors from the end are dropped.

Sync the page background

Turn on the sync option and the page background takes the first color of your palette. This helps you judge a color at full size, not just as a small swatch. Turn it off and the normal page background comes back. It also resets when you leave the tool.

Copying code and downloading files

The Developer Code tab shows four snippets built from your current palette: CSS variables, a Tailwind color object, a JavaScript array for React, and Dart constants for Flutter. Each has its own Copy button. The Designer Assets tab has two buttons. One downloads an SVG file named palette.svg, with one swatch per color and its HEX label underneath. The other copies the palette data as JSON.

The live UI preview

At the bottom of the tool, a small mockup uses the first four colors of your palette for a background, a button, a card and a badge. It gives a quick feel for how the colors look together in an interface. It is a visual sample only. The tool does not check text contrast or accessibility.

Features explained

Random palettes of 2 to 10 colors

The Generate Random button or the spacebar creates a new palette. This is the fastest way to explore. Colors are fully random, so some combinations will not work well together.

Lock and replace single colors

Lock a color to keep it through the next generation. Use the refresh icon to change just one swatch. This lets you build a palette step by step.

HEX, RGB and HSL values

Click a value on a card to copy it. The card shows hue and saturation for HSL. The copied HSL value also includes lightness.

Color wheel view

Shows where each color sits by hue and saturation. It is useful for seeing whether your colors are bunched together or spread around the wheel.

Code snippets for four formats

CSS variables, a Tailwind colors object, a React array and Flutter/Dart constants. The Tailwind snippet is a fragment to paste into your own config, not a complete file.

SVG download and JSON copy

The SVG is a simple strip of swatches with HEX labels. The JSON copy contains the full data for each color: HEX, RGB, HSL and lock state.

Page background sync and UI preview

Two quick ways to see the palette in context: the full page background, and a small button, card and badge mockup.

What can you use it for?

Starting a new design

Generate palettes until one color feels right, lock it, and build the rest of the palette around it.

Setting up a stylesheet or theme

Copy the colors as CSS variables or a Tailwind snippet and paste them straight into your project.

Flutter and React projects

Get Dart Color constants or a JavaScript array of HEX strings without converting by hand.

Sharing a palette with a designer

Download the SVG strip or copy the JSON so the colors and their HEX codes can be sent along.

Teaching and practice

Use the wheel to see how hue and saturation relate to a color's position, and compare random colors visually.

Tool information

Tool typeRandom color palette generator
Number of colors2 to 10 (starts at 6)
Color values shownHEX, RGB, HSL
Color wheelYes, hue and saturation only
Code snippetsCSS variables, Tailwind, React array, Flutter/Dart
File downloadSVG (palette.svg)
Data copyJSON
Keyboard shortcutSpacebar generates a new palette
Palette savingNo, the palette is lost when you reload the page
Contrast checkingNo
File uploadNone, there is no input file
ProcessingIn your browser

Benefits

  • Generate and copy colors without uploading anything.
  • The spacebar shortcut makes it quick to try many palettes.
  • Lock and single-color replace let you refine a palette instead of starting over.
  • Code for four formats is ready to copy.

Limitations

  • Colors are completely random. The tool does not use harmony rules, so combinations can clash.
  • Palettes are not saved. Reloading or closing the page loses the current palette, so copy or download what you want to keep.
  • The tool does not check contrast or accessibility. The preview is only a visual sample.
  • The only file download is SVG. There are no PNG, PDF or Adobe swatch downloads.
  • The JSON copy is the tool's own data format. It is not a ready-made Figma tokens file.
  • The spacebar shortcut is not available on touch screens without a keyboard. Use the button instead.
  • The wheel shows hue and saturation only, not lightness.

How the tool handles your data

The tool generates colors, draws the wheel, builds the code snippets and creates the SVG file in your browser. There is no file upload, and the tool's own code does not send your palette to a server. Copying uses your browser's clipboard.

Privacy

The tool does not store your palettes in the browser either. This statement covers the tool itself, not other scripts the rest of the website may load.

Tips

  • Lock your main color first, then keep generating to find accent colors.
  • Switch on page background sync to see the first color at full size.
  • Increase the number of colors to 10 to explore, then lower it once you have found a few good ones.
  • Copy your palette before reloading the page, because it is not saved.
  • Before using a palette for text, check contrast with a dedicated contrast checker.

Frequently asked questions

Do I need an account to use it?

No. The tool has no sign-in step. Open the page and start generating.

Are the colors really random?

Yes. Each color is picked at random from all HEX values. The tool does not follow any harmony rule, so some palettes will look good and some will not.

How many colors can I generate?

From 2 to 10 at a time. A new palette starts with 6 colors.

How do I keep a color I like?

Click the lock icon on its card. Locked colors stay in place when you generate a new palette. The refresh icon replaces only that one color.

Which formats can I copy?

Single colors can be copied as HEX, RGB or HSL. The whole palette can be copied as CSS variables, a Tailwind colors snippet, a React array or Flutter/Dart constants. It can also be copied as JSON.

Can I download the palette as a file?

Yes, as an SVG file named palette.svg. It shows one swatch for each color with its HEX code. There are no PNG, PDF or Adobe swatch downloads.

Does it check text contrast or accessibility?

No. The preview at the bottom is only a visual sample. Use a contrast checker before choosing text and background colors.

Is my palette saved if I reload the page?

No. The palette is not stored. Copy the codes or download the SVG before you leave the page.

Does it work on a phone?

The Generate Random button, locks and copy buttons work by touch. The spacebar shortcut needs a keyboard.