CSS Named Color Reference

White Color Code

White·#FFFFFF

Neutral FamilyNeutralLight toneLow saturationoklch(100.0% 0.000 90)
HEX
#FFFFFFPrimary token
RGB
rgb(255, 255, 255)Screen values
HSL
hsl(0 0% 100%)Hue and lightness
CMYK
0, 0, 0, 0Print handoff
LAB
100, 0, 0Perceptual reference
OKLCH
oklch(100.0% 0.000 90)Modern perceptual

White is a light, muted CSS named color at #FFFFFF. If you searched for white hex code, FFFFFF, or white RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast17.15:1
Best UseTypography, surfaces, borders, shadows, and foundational interface structure

Tonal Scale

100#FFFFFF
300#FFFFFF
500#FFFFFF
600#FFFFFF
800#B8B8B8

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

1.00:1Needs more separation

Dark text on this color

Large headings and selective UI.

17.15:1AAA-level contrast

This color on light surface

Links, borders, and icons on light UI.

1.05:1Needs more separation
Best text colorDark textContrast 17.15:1

Professional Reference

OKLCHoklch(100.0% 0.000 90)
Relative Luminance1.0000
Source TypeCSS Named Color
Classification
Neutral FamilyNeutralLight toneLow saturation
Source Context
Source Type
CSS Named Color
System
CSS
Aliases
Material Black White WHITETailwind White
Closest Matches
Material Grey 50Tailwind Zinc 50Tailwind Neutral 50
Color Notes
  • White is kept as an exact CSS named color for #FFFFFF.
  • Queries for white color code, FFFFFF, or white RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

1.00:1Needs more separation

Dark text on this color

Dark text or headings on the current color.

17.15:1AAA

This color on light surface

Use this color for links, strokes, or icons on light UI.

1.05:1Needs more separation

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

17.15:1AAA
Best text colorDark textContrast 17.15:1 · AAA

Where It Works

  • Use it for text, surfaces, rules, borders, elevation, and layout structure.
  • Choose the exact neutral by contrast role instead of treating all grays as interchangeable.
  • Pair with one clear accent color and a lighter or darker neutral step.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

White is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Core neutrals for typography, surfaces, and systems.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-white: #FFFFFF;
  --color-white-rgb: 255 255 255;
}
Utility Class
class="bg-[#FFFFFF] text-white"
class="hover:bg-[#B8B8B8] ring-1 ring-[#FFFFFF]"
JSON Token
{
  "white": "#FFFFFF",
  "whiteRgb": [255, 255, 255],
  "whiteHsl": [0, 0, 100]
}