White Color Code (#ffffff)

White is #ffffff in hex and rgb(255, 255, 255) — a very light white. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

White
#ffffff
CSS namewhite
Hex#ffffff
RGBrgb(255, 255, 255)
HSLhsl(0 0% 100%)
HWBhwb(0 100% 0%)
CMYK0%, 0%, 0%, 0%

Tints and shades

About White

White (white) is a very light, muted white with the hex code #ffffff, or rgb(255, 255, 255). In HSL it sits at a hue of 0°, 0% saturation and 100% lightness. It is one of the 148 named colors every browser understands, so you can write color: white; instead of the hex value.

Using White for text and backgrounds

PairingContrast ratioWCAG
White text on white1.00 : 1fails
White text on black21.00 : 1AAA

On a white background, use black text (21.00 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: white;               /* or #ffffff */
  background-color: #ffffff;
  border: 1px solid rgb(255 255 255 / 50%);
}

Similar named colors

Snow (#fffafa), Ghost White (#f8f8ff), Mint Cream (#f5fffa), Azure (#f0ffff), Ivory (#fffff0), Floral White (#fffaf0).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for white?
#ffffff — that is rgb(255, 255, 255) and hsl(0, 0%, 100%). In CSS you can also just write white.
Is white text readable on white?
Its contrast ratio on white is 1.00 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with white?
White is a neutral, so it pairs with almost any color; use it for backgrounds, borders and text around a stronger accent.