CSS named color

White #FFFFFF

white rgb(255, 255, 255)

White is a near-white with the hex code #FFFFFF, which converts to rgb(255, 255, 255). Open #FFFFFF in the converter to tweak it.

White color values

HEX#FFFFFF
HEX (shorthand)#FFF
RGBrgb(255, 255, 255)
RGBArgba(255, 255, 255, 1)
8-digit HEX#FFFFFFFF
HSLhsl(0, 0%, 100%)
HSV / HSB0°, 0%, 100%
CMYK0%, 0%, 0%, 0%
RGB 0–11, 1, 1
Decimal16777215
CSS keywordwhite

How #FFFFFF converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: FF → 255, FF → 255, FF → 255. That gives rgb(255, 255, 255). The step-by-step guide explains the math.

Shades of White

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of White

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of White on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

White has no hue (saturation is 0%), so hue-based harmonies collapse to the same gray. Grays pair with any accent color — pick one from the palette generator.

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White White 1.00:1Fail
Black White 21.00:1AAA

Use black text on a white background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use White in CSS

.element {
  color: white;                         /* keyword */
  background-color: #FFFFFF;            /* hex */
  border-color: rgb(255 255 255 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #FFFFFF80 is White at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for White?

The CSS named color white is #FFFFFF in hexadecimal. In CSS you can write color: white; or color: #FFFFFF; — both produce the same pixel.

What is White in RGB?

White is rgb(255, 255, 255): red 255, green 255, blue 255 on the 0–255 scale. As normalized 0–1 floats that is (1, 1, 1).

Is white or black text more readable on White?

Black text is more readable. White on #FFFFFF has a contrast ratio of 1.00:1 (Fail), black on #FFFFFF has 21.00:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!