CSS named colour

Gainsboro

#dcdcdc

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

RGB
rgb(220 220 220)
HSL
0°, 0%, 86%
OKLCh
89.4% 0.000 0.0

Open in the picker

Gainsboro in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#dcdcdc
RGBrgb(220 220 220)
RGB legacyrgb(220, 220, 220)
RGB percentrgb(86.27% 86.27% 86.27%)
HSLhsl(300 0% 86.3%)
HSL legacyhsl(300, 0%, 86.3%)
HSV / HSBhsv(300, 0%, 86.3%)
HWBhwb(300 86.3% 13.7%)
Nearest namegainsboro
CMYKcmyk(0%, 0%, 0%, 13.7%)Naive conversion. Real print work needs an ICC profile.

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

OKLChoklch(89.449% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(89.449% 0 0)
CIE LChlch(87.761% 0 139.088)
CIE Lablab(87.761% 0 0)
Display P3color(display-p3 0.8627 0.8627 0.8627)
Rec. 2020color(rec2020 0.8464 0.8464 0.8464)
srgb-linearcolor(srgb-linear 0.7157 0.7157 0.7157)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.6802 0.7157 0.7794)

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

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

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

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

Raw valuesPacked integers and plain arrays.

0x hex0xDCDCDC
0x hex (ARGB)0xFFDCDCDC
Array 0–1[0.863, 0.863, 0.863]
Array 0–255[220, 220, 220]
Decimal integer14474460

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
Gainsboro on white1.37:1FailLc 18Not usable for text
Gainsboro on black15.31:1AAALc 85Body text, 18px and up

Gainsboro text on a white background

Gainsboro text on a black background

White text on Gainsboro

Black text on Gainsboro

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#e2e2e2
  • Tint 2#e8e8e8
  • Tint 3#ededed
  • Tint 4#f3f3f3
  • Tint 5#f9f9f9
  • Shade 1#acacac
  • Shade 2#7f7f7f
  • Shade 3#545454
  • Shade 4#2d2d2d
  • Shade 5#0b0b0b

Colours that work with Gainsboro

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

  • #dcdcdc
  • #dcdcdc
  • #dcdcdc
  • #dcdcdc
  • #dcdcdc

Closest CSS names

  • gainsboroexact match
  • lightgrayΔEok 0.028
  • lavenderΔEok 0.045
  • powderblueΔEok 0.054
  • mistyroseΔEok 0.055
  • antiquewhiteΔEok 0.061