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

#ffffff
HEX#ffffff
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)

Harmonies

Complementary

Analogous

Triadic

Split complementary

Tints & shades

#d9d9d9#ebebeb#f5f5f5#f5f5f5#f5f5f5

Accessibility

vs #ffffff1:1
vs #00000021:1
Suggested text color#000000 · 21:1 · WCAG AAA

Similar named colors

snow#fffafaghostwhite#f8f8ffmintcream#f5fffaazure#f0ffffivory#fffff0floralwhite#fffaf0

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.

← All named colors