CSS named colour

Dark Gray

#a9a9a9

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

RGB
rgb(169 169 169)
HSL
0°, 0%, 66%
OKLCh
73.5% 0.000 0.0

Open in the picker

Dark Gray in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#a9a9a9
RGBrgb(169 169 169)
RGB legacyrgb(169, 169, 169)
RGB percentrgb(66.27% 66.27% 66.27%)
HSLhsl(240 0% 66.3%)
HSL legacyhsl(240, 0%, 66.3%)
HSV / HSBhsv(240, 0%, 66.3%)
HWBhwb(240 66.3% 33.7%)
Nearest namedarkgray
CMYKcmyk(0%, 0%, 0%, 33.7%)Naive conversion. Real print work needs an ICC profile.

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

OKLChoklch(73.481% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(73.481% 0 0)
CIE LChlch(69.238% 0 139.088)
CIE Lablab(69.238% 0 0)
Display P3color(display-p3 0.6627 0.6627 0.6627)
Rec. 2020color(rec2020 0.6259 0.6259 0.6259)
srgb-linearcolor(srgb-linear 0.3968 0.3968 0.3968)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.3771 0.3968 0.4321)

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

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

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

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

Raw valuesPacked integers and plain arrays.

0x hex0xA9A9A9
0x hex (ARGB)0xFFA9A9A9
Array 0–1[0.663, 0.663, 0.663]
Array 0–255[169, 169, 169]
Decimal integer11119017

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
Dark Gray on white2.35:1FailLc 46Large headings only
Dark Gray on black8.94:1AAALc 56Large headings only

Dark Gray text on a white background

Dark Gray text on a black background

White text on Dark Gray

Black text on Dark Gray

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#b7b7b7
  • Tint 2#c5c5c5
  • Tint 3#d3d3d3
  • Tint 4#e2e2e2
  • Tint 5#f0f0f0
  • Shade 1#848484
  • Shade 2#606060
  • Shade 3#3f3f3f
  • Shade 4#202020
  • Shade 5#060606

Colours that work with Dark Gray

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

  • #a9a9a9
  • #a9a9a9
  • #a9a9a9
  • #a9a9a9
  • #a9a9a9

Closest CSS names

  • darkgrayexact match
  • rosybrownΔEok 0.069
  • silverΔEok 0.073
  • darkseagreenΔEok 0.081
  • tanΔEok 0.082
  • lightsteelblueΔEok 0.090