CSS named colour
Light Gray
#d3d3d3
A CSS named colour: lightgray is valid anywhere a colour is expected.
- RGB
- rgb(211 211 211)
- HSL
- 0°, 0%, 83%
- OKLCh
- 86.7% 0.000 0.0
Light Gray in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #d3d3d3 | |
|---|---|---|
| RGB | rgb(211 211 211) | |
| RGB legacy | rgb(211, 211, 211) | |
| RGB percent | rgb(82.75% 82.75% 82.75%) | |
| HSL | hsl(240 0% 82.7%) | |
| HSL legacy | hsl(240, 0%, 82.7%) | |
| HSV / HSB | hsv(240, 0%, 82.7%) | |
| HWB | hwb(240 82.7% 17.3%) | |
| Nearest name | lightgray | |
| CMYK | cmyk(0%, 0%, 0%, 17.3%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(86.686% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(86.686% 0 0) | |
| CIE LCh | lch(84.556% 0 139.088) | |
| CIE Lab | lab(84.556% 0 0) | |
| Display P3 | color(display-p3 0.8275 0.8275 0.8275) | |
| Rec. 2020 | color(rec2020 0.8072 0.8072 0.8072) | |
| srgb-linear | color(srgb-linear 0.6514 0.6514 0.6514)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.6191 0.6514 0.7094) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.827)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.651)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.827, 0.827, 0.827, 1.0) | |
| GLSL vec4 — linear | vec4(0.651, 0.651, 0.651, 1.0) | |
| GLSL ivec3 | ivec3(211, 211, 211) | |
| HLSL float3 — sRGB | float3(0.827) | |
| HLSL float3 — linear | float3(0.651) | |
| HLSL float4 — sRGB | float4(0.827, 0.827, 0.827, 1.0) | |
| HLSL half4 — sRGB | half4(0.827, 0.827, 0.827, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.827) | |
| WGSL vec4f — sRGB | vec4f(0.827, 0.827, 0.827, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.651, 0.651, 0.651) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.827f, 0.827f, 0.827f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(211, 211, 211, 255) | |
| Unreal FLinearColor | FLinearColor(0.6514f, 0.6514f, 0.6514f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(211, 211, 211, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.827, 0.827, 0.827, 1) | |
| Flutter Color | Color(0xFFD3D3D3)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(211, 211, 211) | |
| SwiftUI Color | Color(red: 0.827, green: 0.827, blue: 0.827) | |
| UIKit UIColor | UIColor(red: 0.827, green: 0.827, blue: 0.827, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xD3D3D3 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFD3D3D3 | |
| Array 0–1 | [0.827, 0.827, 0.827] | |
| Array 0–255 | [211, 211, 211] | |
| Decimal integer | 13882323 |
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 |
|---|---|---|---|---|
| Light Gray on white | 1.50:1 | Fail | Lc 23 | Not usable for text |
| Light Gray on black | 14.03:1 | AAA | Lc 80 | Body text, 18px and up |
Light Gray text on a white background
Light Gray text on a black background
White text on Light Gray
Black text on Light 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#dadada
- Tint 2#e1e1e1
- Tint 3#e9e9e9
- Tint 4#f0f0f0
- Tint 5#f8f8f8
- Shade 1#a5a5a5
- Shade 2#7a7a7a
- Shade 3#515151
- Shade 4#2b2b2b
- Shade 5#0a0a0a
Colours that work with Light Gray
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #d3d3d3
- #d3d3d3
- #d3d3d3
- #d3d3d3
- #d3d3d3
Closest CSS names
lightgrayexact matchgainsboroΔEok 0.028lightblueΔEok 0.050powderblueΔEok 0.051thistleΔEok 0.055silverΔEok 0.059