CSS named colour
Dim Gray
#696969
A CSS named colour: dimgray is valid anywhere a colour is expected.
- RGB
- rgb(105 105 105)
- HSL
- 0°, 0%, 41%
- OKLCh
- 52.1% 0.000 0.0
Dim Gray in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #696969 | |
|---|---|---|
| RGB | rgb(105 105 105) | |
| RGB legacy | rgb(105, 105, 105) | |
| RGB percent | rgb(41.18% 41.18% 41.18%) | |
| HSL | hsl(240 0% 41.2%) | |
| HSL legacy | hsl(240, 0%, 41.2%) | |
| HSV / HSB | hsv(240, 0%, 41.2%) | |
| HWB | hwb(240 41.2% 58.8%) | |
| Nearest name | dimgray | |
| CMYK | cmyk(0%, 0%, 0%, 58.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(52.081% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(52.081% 0 0) | |
| CIE LCh | lch(44.414% 0 139.088) | |
| CIE Lab | lab(44.414% 0 0) | |
| Display P3 | color(display-p3 0.4118 0.4118 0.4118) | |
| Rec. 2020 | color(rec2020 0.3563 0.3563 0.3563) | |
| srgb-linear | color(srgb-linear 0.1413 0.1413 0.1413)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.1343 0.1413 0.1538) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.412)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.141)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.412, 0.412, 0.412, 1.0) | |
| GLSL vec4 — linear | vec4(0.141, 0.141, 0.141, 1.0) | |
| GLSL ivec3 | ivec3(105, 105, 105) | |
| HLSL float3 — sRGB | float3(0.412) | |
| HLSL float3 — linear | float3(0.141) | |
| HLSL float4 — sRGB | float4(0.412, 0.412, 0.412, 1.0) | |
| HLSL half4 — sRGB | half4(0.412, 0.412, 0.412, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.412) | |
| WGSL vec4f — sRGB | vec4f(0.412, 0.412, 0.412, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.141, 0.141, 0.141) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.412f, 0.412f, 0.412f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(105, 105, 105, 255) | |
| Unreal FLinearColor | FLinearColor(0.1413f, 0.1413f, 0.1413f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(105, 105, 105, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.412, 0.412, 0.412, 1) | |
| Flutter Color | Color(0xFF696969)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(105, 105, 105) | |
| SwiftUI Color | Color(red: 0.412, green: 0.412, blue: 0.412) | |
| UIKit UIColor | UIColor(red: 0.412, green: 0.412, blue: 0.412, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x696969 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF696969 | |
| Array 0–1 | [0.412, 0.412, 0.412] | |
| Array 0–255 | [105, 105, 105] | |
| Decimal integer | 6908265 |
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 |
|---|---|---|---|---|
| Dim Gray on white | 5.49:1 | AA | Lc 77 | Body text, 18px and up |
| Dim Gray on black | 3.83:1 | AA Large | Lc 24 | Not usable for text |
Dim Gray text on a white background
Dim Gray text on a black background
White text on Dim Gray
Black text on Dim 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#808080
- Tint 2#989898
- Tint 3#b1b1b1
- Tint 4#cacaca
- Tint 5#e4e4e4
- Shade 1#515151
- Shade 2#3a3a3a
- Shade 3#242424
- Shade 4#101010
- Shade 5#020202
Colours that work with Dim Gray
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #696969
- #696969
- #696969
- #696969
- #696969
Closest CSS names
dimgrayexact matchslategrayΔEok 0.078grayΔEok 0.079darkolivegreenΔEok 0.093tealΔEok 0.095lightslategrayΔEok 0.103