239 (!) different ways to write the same shade of blue using modern CSS.
OK, here's how it happens:
rgb()
, hsl()
, hwb()
,
lab()
, lch()
, oklab()
and
oklch()
#00f, #00ff, #0000ff, #0000ffff)
hsl()
,
hwb()
, lab()
, lch()
,
oklab()
and oklch()
?
Hue is an angle. Angles in CSS can be degrees with no unit, degrees,
radians, gradians, or turns.
/ 1.0
and / 100%
This is ONLY the modern syntax. Legacy syntax (r,g,b)
,
and aliases rgba()
and hsla()
also still work, which probably adds another few dozen ways to say "the box
is blue" that work in all modern browsers.