CSS Named Color / Web Safe Color

Copy-ready color values

HEX#FFFFFF
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)
HSVhsv(0, 0%, 100%)
CMYK approx.cmyk(0, 0, 0, 0)

Color value table

FormatValueCopy
HEX#FFFFFF
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)
HSVhsv(0, 0%, 100%)
CMYK approx.cmyk(0, 0, 0, 0)
CSS keywordwhite

Contrast and classification

LightLightness1.00:1Contrast with white21.00:1Contrast with blackGrayscaleColor family

Shade and tint preview

White 10%
#FFFFFF

White 30%
#FFFFFF

White 70%
#FFFFFF

White 90%
#FFFFFF

Black 10%
#E6E6E6

Black 30%
#B3B3B3

Black 70%
#4D4D4D

Black 90%
#1A1A1A

Harmony palettes

Complementary

#000000
#3D3D3D

Analogous

#FFFFFF
#FFFFFF

Triadic

#FFFFFF
#FFFFFF

Split complementary

#2E2E2E
#000000

Using White

White works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-white: #ffffff;
}

.button-primary {
  background: var(--color-white);
  color: #000000;
}

$white: #ffffff;

// Tailwind arbitrary value
class="bg-[#ffffff] text-white"