white (#FFFFFF)

white is a CSS named color with the hex code #FFFFFF, rgb(255, 255, 255). It is a very pale, neutral gray.

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

Full #FFFFFF details: palettes, shades, color-blind view →

Description

White has a hue of 0°, saturation 0% and lightness 100%, which places it in the white family. Its strongest channel is red (255).

Using white in CSS

.title { color: white; }
.box   { background: white; border-color: #ffffff; }
.soft  { background: rgb(255 255 255 / 20%); }   /* white at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
whitesmoke#f5f5f5245, 245, 2452
snow#fffafa255, 250, 2502.5
ghostwhite#f8f8ff248, 248, 2553.8
aliceblue#f0f8ff240, 248, 2554.6
floralwhite#fffaf0255, 250, 2404.9
seashell#fff5ee255, 245, 2385.2
mintcream#f5fffa245, 255, 2505.6
linen#faf0e6250, 240, 2306.3

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 1.00:1; with black text: 21.00:1. Black body text on white meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for white?
#FFFFFF.
What colors are similar to white?
whitesmoke (#f5f5f5), snow (#fffafa), ghostwhite (#f8f8ff).