CSS named colour

White Smoke

#f5f5f5

A CSS named colour: whitesmoke is valid anywhere a colour is expected.

RGB
rgb(245 245 245)
HSL
0°, 0%, 96%
OKLCh
97.0% 0.000 0.0

Open in the picker

White Smoke in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#f5f5f5
RGBrgb(245 245 245)
RGB legacyrgb(245, 245, 245)
RGB percentrgb(96.08% 96.08% 96.08%)
HSLhsl(300 0% 96.1%)
HSL legacyhsl(300, 0%, 96.1%)
HSV / HSBhsv(300, 0%, 96.1%)
HWBhwb(300 96.1% 3.9%)
Nearest namewhitesmoke
CMYKcmyk(0%, 0%, 0%, 3.9%)Naive conversion. Real print work needs an ICC profile.

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

OKLChoklch(97.015% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(97.015% 0 0)
CIE LChlch(96.537% 0 139.088)
CIE Lablab(96.537% 0 0)
Display P3color(display-p3 0.9608 0.9608 0.9608)
Rec. 2020color(rec2020 0.9559 0.9559 0.9559)
srgb-linearcolor(srgb-linear 0.9131 0.9131 0.9131)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.8679 0.9131 0.9944)

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

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

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

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

Raw valuesPacked integers and plain arrays.

0x hex0xF5F5F5
0x hex (ARGB)0xFFF5F5F5
Array 0–1[0.961, 0.961, 0.961]
Array 0–255[245, 245, 245]
Decimal integer16119285

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 Smoke on white1.09:1FailLc 0Not usable for text
White Smoke on black19.26:1AAALc 101Body text at any size

White Smoke text on a white background

White Smoke text on a black background

White text on White Smoke

Black text on White Smoke

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#f7f7f7
  • Tint 2#f8f8f8
  • Tint 3#fafafa
  • Tint 4#fcfcfc
  • Tint 5#fdfdfd
  • Shade 1#c0c0c0
  • Shade 2#8e8e8e
  • Shade 3#5f5f5f
  • Shade 4#343434
  • Shade 5#0e0e0e

Colours that work with White Smoke

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

  • #f5f5f5
  • #f5f5f5
  • #f5f5f5
  • #f5f5f5
  • #f5f5f5

Closest CSS names

  • whitesmokeexact match
  • aliceblueΔEok 0.014
  • ghostwhiteΔEok 0.014
  • seashellΔEok 0.015
  • lavenderblushΔEok 0.018
  • snowΔEok 0.020