# CSS Color Formats

Every way to write a color.

| Format | Example |
|---|---|
| Named | `rebeccapurple` |
| Hex | `#1e90ff`, short `#09f`, with alpha `#1e90ff80` |
| RGB | `rgb(30 144 255)`, `rgb(30 144 255 / 50%)` |
| HSL | `hsl(210 100% 56%)` |
| Keywords | `transparent`, `currentColor` |
| Modern | `oklch(0.7 0.15 250)` |

HSL is easy to adjust: change lightness for tints and shades, keep hue for the same family.
