Password Generator
Generate strong random passwords with the browser's cryptographic random generator.
The same colour can be written #3B82F6, rgb(59, 130, 246) or hsl(217, 91%, 60%). The notation changes; the colour does not. Choosing the right one makes design work easier.
HEX and RGB describe a colour by its three channel values. HSL describes it by hue, saturation and lightness. All three can represent millions of colours, so the choice is about convenience, not capability.
HEX is the format you copy from a design tool and paste into CSS. It is short, exact and supported everywhere. The downside is readability: #3B82F6 tells you little about the colour unless you have memorised the channels.
rgb(59, 130, 246) states the red, green and blue values directly. That makes it easy to reason about channel-level changes, and the rgba() form adds transparency. Most design tools expose RGB sliders.
HSL separates the colour angle (hue) from how saturated and how light it is. Want a darker version of the same blue? Lower the lightness and keep the hue. Want a muted variant? Reduce saturation. That is why HSL is popular for generating hover states and palettes.
Eight-digit HEX adds opacity, for example #3B82F680 for half-transparent blue. HSL has hsla(), and RGB has rgba(). Opacity is part of the colour only when the notation says so.
HEX, RGB and HSL all describe sRGB colours. Modern displays can show wider gamuts, and CSS now accepts oklch() and lab(), which describe colour perceptually: equal lightness steps look equal, unlike HSL where yellow and blue at the same lightness do not feel equally bright.
For everyday UI work sRGB remains fine. When a gradient between two hues turns muddy in the middle, a perceptual space such as OKLCH usually fixes it, because the interpolation happens where the eye expects it to.
The colour converter shows HEX, RGB and HSL at once, with a shade palette. Paste a HEX value, adjust the sliders, and copy the notation you need.