Random Color Generator — Random Opaque sRGB Values
Generate random six-digit HEX colors with their matching RGB values for a quick visual starting point.
Loading the tool… JavaScript is required for processing on your device. The instructions and examples below are available without JavaScript.
How to use it
Choose how many colors and generate. Copy the HEX codes into your design tool.
Good to know
Colors are uniformly random opaque sRGB values.
Get a color token to experiment with
Choose a count and generate. A one-color run might yield #4F0C13 with rgb(79, 12, 19). Copy the HEX code into a design tool, CSS variable, or prototype and judge it in the context where it will be used.
Random colors are not a finished palette
Each channel is drawn as an opaque sRGB value, so a set can include clashing hues, inaccessible contrast, or colors that do not fit a brand. The tool does not calculate contrast, suggest accessible text colors, or output alpha and wide-gamut values. Use a contrast checker before using a color for text.
Frequently asked questions
How do I get a random HEX color?
Generate one color and copy the # code. Each run gives a new random color.
Can I get RGB values too?
Yes. Every color is listed with its HEX and RGB values.
Are the colors from a palette?
No. They are fully random, so they will not necessarily match each other.