Explanation
How Colour Generator works
The colour generator creates random colours. For each colour, three random values for red, green and blue (each 0–255) are drawn, and the common notations HEX, RGB and HSL are computed from them. HSL describes the same colour via hue, saturation and lightness and makes targeted adjustments easier.
Generation happens locally in the browser using Math.random. The colours are purely random and not checked for contrast or accessibility.
Limits of this tool
- No contrast or WCAG check.
- No palette harmony (complementary, monochrome, etc.).
- Math.random — not for security purposes.
Sources
- CSS Color Module: Definition of HEX, RGB and HSL notation.