CSS named color
White
#FFFFFF
HEX
#ffffffRGB
rgb(255, 255, 255)HSL
hsl(0, 0%, 100%)OKLCH
oklch(100.00% 0.0000 89.88)NAME
whitePalette
Complementary
180° on the color wheelAnalogous
±30° around the base hueTriadic
±120° for harmonic contrastShades
Lighter and darker variantsCSS 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.