# Random Color Generator

> Generate a random color or palette with HEX, RGB and HSL codes, by color family and style. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/random-color-generator

**Category:** [Fun & Random](https://toffeekit.com/category/fun) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/random-color-generator

**Also useful for:** random colour generator, random color, random hex color, random color picker, color randomizer, random palette

## What you can do

- **Five-color palette** — Lock the ones you like and reroll the rest. ([open with this preset](https://toffeekit.com/tools/random-color-generator?preset=palette))
- **Pastel colors** — Soft, light shades only. ([open with this preset](https://toffeekit.com/tools/random-color-generator?preset=pastel))
- **Dark colors** — Deep shades for dark themes. ([open with this preset](https://toffeekit.com/tools/random-color-generator?preset=dark))

## How it works

1. Choose How many colors: 1 for a single swatch or up to 12 for a palette.
2. Pick a Color family such as blue or pink, and a Style like Pastel or Dark, or leave both on Any.
3. Press Generate a color. Copy the HEX, RGB or HSL code with the copy buttons.
4. In a palette, click the lock on colors you like, then generate again to replace the rest.

## FAQ

### How does the random color generator work?

It picks a random hue, saturation and lightness within the family and style you choose, using crypto.getRandomValues, then converts the result to HEX and RGB.

### How do I get a random pastel color?

Set Style to Pastel. Pastels are light, softly saturated shades, about 80–90% lightness.

### What is the difference between HEX and RGB?

Both describe the same color. RGB lists red, green and blue from 0 to 255, like rgb(43, 139, 242). HEX writes those three numbers in base 16, like #2B8BF2.

### What is the color name next to the code?

It is the nearest of the 148 standard CSS color names, such as cornflowerblue or tomato. It is an approximate match, so the exact code is what to use.

### Can I generate a random color palette?

Yes. Choose 3, 5, 8 or 12 colors. Lock the ones you want to keep and generate again to swap out only the others.

### Is Random Color Generator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Random Color Generator runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Random Number & Dice](https://toffeekit.com/tools/random-number-generator) — Random numbers, dice rolls and coin flips.
- [Wheel Spinner](https://toffeekit.com/tools/wheel-spinner) — Spin a wheel to pick a random name or choice, with weights, colors, saved wheels and a share link.
- [Yes or No Wheel](https://toffeekit.com/tools/yes-or-no-wheel) — Spin a yes or no wheel to settle a decision, with an optional maybe and a running tally.
- [Number Wheel](https://toffeekit.com/tools/number-wheel) — Spin a wheel of numbers, 1 to 10, 1 to 100 or any range, with an option to never repeat a number.
- [Random Name Picker](https://toffeekit.com/tools/random-name-picker) — Paste a list of names and pick one or several at random, with a shuffle reveal and no repeats until everyone has had a turn.
- [List Randomizer](https://toffeekit.com/tools/list-randomizer) — Shuffle any list into a random order, numbered or plain, ready to copy.

