5 min read
2026-02-05
HSL is more intuitive than RGB: change Hue to select a color, Saturation for brightness, Lightness for lightness. It's easy to create variations of the same color.
The #RRGGBBAA format allows you to set transparency: #FF000080 - red with 50% transparency.
Text must have a contrast ratio of at least 4.5:1 relative to the background (WCAG AA standard).
RGB colors may appear different on screen when printed in CMYK. Always check the test print.
Store colors in variables: `--primary: hsl(220, 90%, 56%)`. It's easy to change the theme of your entire site.
Instead of #000000, try #1a1a2e - it's easier on the eyes and more professional.
If the character pairs are the same, you can shorten it: #FF5500 → #F50. Powered by CSS.
See also: Number systems converter, Data converter