Add to Chrome

White color: hex codes, shades and palettes

Palettes built around white. Click any swatch to copy its hex code.

White is #FFFFFF, white. Below are its shades with hex codes, the values in every common format, and white color palettes to copy.

White hex, RGB, HSL and OKLCH

#FFFFFF
HEX
#FFFFFF
RGB
rgb(255, 255, 255)
HSL
hsl(0, 0%, 100%)
OKLCH
oklch(100.0% 0.000 89.9)
On white
1.00:1
On black
21.00:1

Shades of white

9 steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.

White color values

#FFFFFFrgb(255, 255, 255)
Color spaces of #ffffff
RGB255255255
HSL0%100%
HSV0%100%
CMYK0.000.000.000.00
XYZ95.0470100.0000108.8830
Yxy100.00000.31270.3290
CIE-Lab100.0000-0.00000.0000
Hunter Lab100.0000-5.34115.4433
OKLCH100.0%0.00089.9°

#FFFFFF is 255 red, 255 green and 255 blue. No single channel dominates it. The nearest of the 216 web safe colors is #FFFFFF.

CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.

Base numbers
BaseRedGreenBlue
Binary111111111111111111111111
Octal377377377
Decimal255255255
HexFFFFFF

#ffffff mixed with black

Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.

  • #FFFFFF
  • #E5E5E5
  • #CCCCCC
  • #B2B2B2
  • #999999
  • #7F7F7F
  • #666666
  • #4C4C4C
  • #323232
  • #191919
  • #000000

#ffffff mixed with white

The tint ramp, by the same rule in the other direction.

  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF
  • #FFFFFF

Channel shares

  • Red33.3%
  • Green33.3%
  • Blue33.3%

Color schemes

Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.

Complementary

  • #FFFFFF
  • #FFFFFF

Triadic

  • #FFFFFF
  • #FFFFFF
  • #FFFFFF

Analogous

  • #FFFFFF
  • #FFFFFF
  • #FFFFFF

Monochromatic

  • #8C8C8C
  • #B1B1B1
  • #D7D7D7
  • #FFFFFF
  • #F8F8F8
  • #F8F8F8
  • #F8F8F8

#ffffff on black and on white

The quick brown fox jumps over the lazy dog. 21.00:1

The quick brown fox jumps over the lazy dog. 1.00:1

Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.

CSS for #ffffff

color: #ffffff;
background-color: #ffffff;
border: 3px solid #ffffff;
box-shadow: 1px 1px 3px 2px #ffffff;
text-shadow: 4px 4px 2px rgba(255, 255, 255, 0.8);

/* Perceptually even, and what a modern stylesheet wants */
color: oklch(100.0% 0.000 89.9);

The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands it.

Contrast and readability

White on white measures 1.00:1 and on black 21.00:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.25:1.

The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.

Get Palette Vault from the Microsoft Store