Color palette generator

Generate a random color palette with HEX, RGB and HSL codes and copy any color with one click.

    Last updated: October 2026 · Report a calculation error

    How the color generator works

    The generator picks 1 to 10 random colors at once and shows each in three formats: HEX (#3A7BD5), RGB (58, 123, 213) and HSL (hue, saturation, lightness). Click a swatch to copy its HEX code.

    Color formats — which to use

    FormatExampleWhere it’s used
    HEX#3A7BD5CSS, design tools, most software
    RGBrgb(58, 123, 213)CSS, screens, graphics software
    HSLhsl(215, 65%, 53%)CSS — easy to make lighter or darker shades

    Convert between formats with the HEX / RGB / HSL converter.

    Building a palette from random colors

    • Pick one color you like and add shades with similar saturation — in HSL, mostly change the lightness.
    • Text needs strong contrast with its background. WCAG recommends a contrast ratio of at least 4.5:1.
    • Shuffle a few times — the generator is good for breaking habits and finding inspiration.

    Frequently asked questions

    How do I copy a color code?

    Click the swatch — the HEX code goes to your clipboard. RGB and HSL are shown below it.

    How many HEX colors are there?

    16,777,216 — 256 values each for red, green and blue (256³).

    See alsoWhole category

    1. GN-01Password generatorGenerate a strong random password of any length and character set.
    2. GN-02QR code generatorCreate a QR code for any link or text and download it as a high-resolution PNG, with no watermark.
    3. GN-03Random number generatorPick one or more random numbers from any range, with or without repeats — fair and instant for draws, games and classrooms.
    4. GN-05UUID generatorGenerate one or up to 100 random UUID v4 identifiers (GUIDs) at once, created securely in your browser.