CSS named color

White

#FFFFFF
HEX#ffffff
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)
OKLCHoklch(100.00% 0.0000 89.88)
NAMEwhite

Palette

Complementary

180° on the color wheel

Analogous

±30° around the base hue

Triadic

±120° for harmonic contrast

Shades

Lighter and darker variants
Lightest
#FAFAFA
Lighter
#F2F2F2
Base
#FFFFFF
White
Darker
#CCCCCC
Darkest
#A6A6A6

CSS usage

By name
color: white;
background-color: white;
By HEX
color: #ffffff;
background-color: #ffffff;
By RGB
color: rgb(255, 255, 255);
background-color: rgb(255, 255, 255);
By HSL
color: hsl(0, 0%, 100%);
background-color: hsl(0, 0%, 100%);

WCAG contrast vs white

Aa
1.00:1
Below minimum

WCAG contrast vs black

Aa
21.00:1
AAA

Related colors

FAQ — White

What is the HEX code for White?

The HEX code for White is #FFFFFF. It's one of the 148 named CSS colors and can be used directly in CSS as color: white; or color: #ffffff;

What is White in RGB?

White in RGB is rgb(255, 255, 255) — red 255, green 255, blue 255.

What is White in HSL?

White in HSL is hsl(0, 0%, 100%) — hue 0°, saturation 0%, lightness 100%.

What is the complementary color of White?

The complementary color (directly opposite White on the color wheel) is #FFFFFF. The two together produce maximum contrast.

Is white text readable on White?

The WCAG contrast ratio against white (#FFFFFF) is 1.00:1, and against black (#000000) it's 21.00:1. Black text is more readable. WCAG recommends at least 4.5:1 for body text.

← All colors & converter