Types of color codes
- HEX: 6 hexadecimal digits like
#2F5BEA. The most common in web and design tools - RGB: red, green and blue values from 0 to 255.
rgb(47, 91, 234) - HSL: hue (0–360°), saturation and lightness (%). Easy for making lighter or darker variants of a color
Text contrast (accessibility)
Text on a background is easy to read at a contrast ratio of 4.5:1 or higher (3:1 for large text) per WCAG AA. This tool tells you whether white or black text reads better.