white white #ffffff
white is #ffffff in hexadecimal, rgb(255, 255, 255) in decimal and hsl(0, 0, 100) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #ffffff |
| RGB | rgb(255, 255, 255) |
| HSL | hsl(0, 0%, 100%) |
Harmonies
Complementary
Tints & shades
Accessibility
| vs #ffffff | 1:1 |
| vs #000000 | 21:1 |
| Suggested text color | #000000 · 21:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for white?
white is #ffffff in hex, rgb(255, 255, 255) in decimal and hsl(0, 0%, 100%) in HSL. In CSS you can write either color: white; or color: #ffffff; — they are equivalent.
What colors go with white?
The complementary #ffffff gives the strongest contrast, the analogous pair #ffffff / #ffffff is the safest, and the triad #ffffff / #ffffff adds more tension. All three are derived from the 0° hue of #ffffff.
Does #ffffff read better on white or black?
Its contrast is 1:1 against white and 21:1 against black. Use #000000 text on it — that gives 21:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.