CSS named color

White

#ffffff

A CSS named color: white is valid anywhere a color is expected.

RGB
rgb(255 255 255)
HSL
0°, 0%, 100%
OKLCh
100.0% 0.000 0.0

Open in the picker

White in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ffffff
RGBrgb(255 255 255)
RGB legacyrgb(255, 255, 255)
RGB percentrgb(100% 100% 100%)
HSLhsl(300 100% 100%)
HSL legacyhsl(300, 100%, 100%)
HSV / HSBhsv(300, 0%, 100%)
HWBhwb(300 100% 0%)
Nearest namewhite
CMYKcmyk(0%, 0%, 0%, 0%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS color spaces for uniform scales and P3 displays.

OKLChoklch(100% 0 0)Modern CSS color space for even palettes, better than HSL when building scales.
OKLaboklab(100% 0 0)
CIE LChlch(100% 0 139.088)
CIE Lablab(100% 0 0)
Display P3color(display-p3 1 1 1)
Rec. 2020color(rec2020 1 1 1)
srgb-linearcolor(srgb-linear 1 1 1)Light-linear sRGB: the same numbers a shader wants for math.
CIE XYZ (D65)color(xyz-d65 0.9505 1 1.0891)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 - sRGBvec3(1.0)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 - linearvec3(1.0)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 - sRGBvec4(1.0, 1.0, 1.0, 1.0)
GLSL vec4 - linearvec4(1.0, 1.0, 1.0, 1.0)
GLSL ivec3ivec3(255, 255, 255)
HLSL float3 - sRGBfloat3(1.0)
HLSL float3 - linearfloat3(1.0)
HLSL float4 - sRGBfloat4(1.0, 1.0, 1.0, 1.0)
HLSL half4 - sRGBhalf4(1.0, 1.0, 1.0, 1.0)
WGSL vec3f - sRGBvec3f(1.0)
WGSL vec4f - sRGBvec4f(1.0, 1.0, 1.0, 1.0)
WGSL vec3<f32> - linearvec3<f32>(1.0, 1.0, 1.0)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(1.0f, 1.0f, 1.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(255, 255, 255, 255)
Unreal FLinearColorFLinearColor(1.0f, 1.0f, 1.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 255, 255, 255)Whole numbers from 0 to 255. Use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 1, 1, 1)
Flutter ColorColor(0xFFFFFFFF)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 255, 255)
SwiftUI ColorColor(red: 1, green: 1, blue: 1)
UIKit UIColorUIColor(red: 1, green: 1, blue: 1, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFFFFFF
0x hex (ARGB)0xFFFFFFFF
Array 0–1[1, 1, 1]
Array 0–255[255, 255, 255]
Decimal integer16777215

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
White on white1.00:1FailLc 0Not usable for text
White on black21.00:1AAALc 108Body text at any size

White text on a white background

White text on a black background

White text on White

Black text on White

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#f7f7f7
  • 100#ededed
  • 200#dcdcdc
  • 300#c5c5c5
  • 400#a9a9a9
  • 500#8b8b8b
  • 600#717171
  • 700#5b5b5b
  • 800#484848
  • 900#383838
  • 950#1f1f1f

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#ffffff
  • Tint 2#ffffff
  • Tint 3#ffffff
  • Tint 4#ffffff
  • Tint 5#ffffff
  • Shade 1#c8c8c8
  • Shade 2#949494
  • Shade 3#636363
  • Shade 4#363636
  • Shade 5#0f0f0f

Colors that work with White

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #ffffff
  • #ffffff
  • #ffffff
  • #ffffff
  • #ffffff

Closest CSS names