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
Dark Gray in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #a9a9a9 | |
|---|---|---|
| RGB | rgb(169 169 169) | |
| RGB legacy | rgb(169, 169, 169) | |
| RGB percent | rgb(66.27% 66.27% 66.27%) | |
| HSL | hsl(240 0% 66.3%) | |
| HSL legacy | hsl(240, 0%, 66.3%) | |
| HSV / HSB | hsv(240, 0%, 66.3%) | |
| HWB | hwb(240 66.3% 33.7%) | |
| Nearest name | darkgray | |
| CMYK | cmyk(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.
| OKLCh | oklch(73.481% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(73.481% 0 0) | |
| CIE LCh | lch(69.238% 0 139.088) | |
| CIE Lab | lab(69.238% 0 0) | |
| Display P3 | color(display-p3 0.6627 0.6627 0.6627) | |
| Rec. 2020 | color(rec2020 0.6259 0.6259 0.6259) | |
| srgb-linear | color(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 — sRGB | vec3(0.663)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.397)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.663, 0.663, 0.663, 1.0) | |
| GLSL vec4 — linear | vec4(0.397, 0.397, 0.397, 1.0) | |
| GLSL ivec3 | ivec3(169, 169, 169) | |
| HLSL float3 — sRGB | float3(0.663) | |
| HLSL float3 — linear | float3(0.397) | |
| HLSL float4 — sRGB | float4(0.663, 0.663, 0.663, 1.0) | |
| HLSL half4 — sRGB | half4(0.663, 0.663, 0.663, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.663) | |
| WGSL vec4f — sRGB | vec4f(0.663, 0.663, 0.663, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.397, 0.397, 0.397) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(169, 169, 169, 255) | |
| Unreal FLinearColor | FLinearColor(0.3968f, 0.3968f, 0.3968f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(169, 169, 169, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.663, 0.663, 0.663, 1) | |
| Flutter Color | Color(0xFFA9A9A9)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(169, 169, 169) | |
| SwiftUI Color | Color(red: 0.663, green: 0.663, blue: 0.663) | |
| UIKit UIColor | UIColor(red: 0.663, green: 0.663, blue: 0.663, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xA9A9A9 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFA9A9A9 | |
| Array 0–1 | [0.663, 0.663, 0.663] | |
| Array 0–255 | [169, 169, 169] | |
| Decimal integer | 11119017 |
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.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Dark Gray on white | 2.35:1 | Fail | Lc 46 | Large headings only |
| Dark Gray on black | 8.94:1 | AAA | Lc 56 | Large 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 matchrosybrownΔEok 0.069silverΔEok 0.073darkseagreenΔEok 0.081tanΔEok 0.082lightsteelblueΔEok 0.090