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

Open in the picker

Dim Gray in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#696969
RGBrgb(105 105 105)
RGB legacyrgb(105, 105, 105)
RGB percentrgb(41.18% 41.18% 41.18%)
HSLhsl(240 0% 41.2%)
HSL legacyhsl(240, 0%, 41.2%)
HSV / HSBhsv(240, 0%, 41.2%)
HWBhwb(240 41.2% 58.8%)
Nearest namedimgray
CMYKcmyk(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.

OKLChoklch(52.081% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(52.081% 0 0)
CIE LChlch(44.414% 0 139.088)
CIE Lablab(44.414% 0 0)
Display P3color(display-p3 0.4118 0.4118 0.4118)
Rec. 2020color(rec2020 0.3563 0.3563 0.3563)
srgb-linearcolor(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 — sRGBvec3(0.412)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.141)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.412, 0.412, 0.412, 1.0)
GLSL vec4 — linearvec4(0.141, 0.141, 0.141, 1.0)
GLSL ivec3ivec3(105, 105, 105)
HLSL float3 — sRGBfloat3(0.412)
HLSL float3 — linearfloat3(0.141)
HLSL float4 — sRGBfloat4(0.412, 0.412, 0.412, 1.0)
HLSL half4 — sRGBhalf4(0.412, 0.412, 0.412, 1.0)
WGSL vec3f — sRGBvec3f(0.412)
WGSL vec4f — sRGBvec4f(0.412, 0.412, 0.412, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.141, 0.141, 0.141)

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

Unity Colornew 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 Color32new Color32(105, 105, 105, 255)
Unreal FLinearColorFLinearColor(0.1413f, 0.1413f, 0.1413f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(105, 105, 105, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.412, 0.412, 0.412, 1)
Flutter ColorColor(0xFF696969)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(105, 105, 105)
SwiftUI ColorColor(red: 0.412, green: 0.412, blue: 0.412)
UIKit UIColorUIColor(red: 0.412, green: 0.412, blue: 0.412, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x696969
0x hex (ARGB)0xFF696969
Array 0–1[0.412, 0.412, 0.412]
Array 0–255[105, 105, 105]
Decimal integer6908265

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
Dim Gray on white5.49:1AALc 77Body text, 18px and up
Dim Gray on black3.83:1AA LargeLc 24Not 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 match
  • slategrayΔEok 0.078
  • grayΔEok 0.079
  • darkolivegreenΔEok 0.093
  • tealΔEok 0.095
  • lightslategrayΔEok 0.103