Random Color Generator

    Generate one random color or a 5-color random palette with HEX, RGB, and HSL values for CSS, design mockups, and test data.

    Aa
    #7F2E33

    Generate random CSS colors

    Use this random color generator when you need a quick HEX value, a temporary UI color, a design prompt, a placeholder swatch, or random color test data.

    • Generate 1 color or a 5-color random palette.
    • Filter colors by any, light, dark, pastel, vivid, warm, or cool.
    • Copy HEX, RGB, or HSL values.
    • Use history to return to recent colors from the current session.

    HEX, RGB, and HSL formats

    All three formats describe the same color in CSS-friendly ways. HEX is compact, RGB is channel-based, and HSL is useful when thinking about hue, saturation, and lightness.

    FormatExampleCommon use
    HEX`#3b82f6`CSS, design tools, tokens
    RGB`rgb(59, 130, 246)`Channel-based code and data
    HSL`hsl(217, 91%, 60%)`Hue and lightness adjustments

    Randomness and accessibility

    Color categories are generated through HSL ranges. A pastel result, for example, narrows saturation and lightness so the color feels softer than a fully random RGB pick.

    Random does not mean readable
    A random color is not automatically accessible, brand-safe, or harmonious. Check contrast and use the palette generator when you need a more deliberate color scheme.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools