Skip to content

Dim Gray

Hex #696969, rgb(105 105 105). A gray or black CSS named color.

Open in palette generator

Dim Gray color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Dim Gray

Dim Gray is a medium neutral gray with the hex code #696969. In RGB it is made of 105 red, 105 green and 105 blue; in HSL its hue is 0°, with 0% saturation and 41% lightness. Its perceptual lightness (OKLCH L) is 52.1%.

It is a CSS named color, so you can write "dimgray" or "dimgrey" anywhere CSS accepts a color. Against white it has a contrast ratio of 5.49:1 and against black 3.83:1, so white text reads better on it and passes WCAG AA for normal text.

Also written as Dim Grey: CSS treats both spellings as the same color.

Tints, shades and tones

Dim Gray mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Dim Gray 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Dim Gray

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Square

Contrast and readability

WCAG 2 contrast of Dim Gray with white and black. The readable text color on Dim Gray is white.

Dim Gray textSmall text on white

On white5.49:1

  • AA pass
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc 77

Dim Gray textSmall text on black

On black3.83:1

  • AA fail
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc -24

White text on Dim Gray (#FFFFFF)

Test any pair in the contrast checker.

Color blindness preview

How Dim Gray appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#696969
  • Deuteranopia#696969
  • Tritanopia#696969
  • Protanomaly#696969
  • Deuteranomaly#696969
  • Tritanomaly#696969
  • Achromatopsia#696969

Colors similar to Dim Gray

The closest named colors by perceptual difference (OKLab).

Use Dim Gray in CSS and Tailwind

CSS
.dim-gray {
  color: dimgray; /* #696969 */
  background-color: rgb(105 105 105);
  border-color: oklch(52.1% 0 0);
}
Tailwind CSS
/* Tailwind CSS v4: bg-dim-gray-500, text-dim-gray-700... */
@theme {
  --color-dim-gray-50: #FAFAFA;
  --color-dim-gray-100: #EEEEEE;
  --color-dim-gray-200: #DEDEDE;
  --color-dim-gray-300: #C5C5C5;
  --color-dim-gray-400: #A4A4A4;
  --color-dim-gray-500: #909090;
  --color-dim-gray-600: #7E7E7E;
  --color-dim-gray-700: #696969;
  --color-dim-gray-800: #535353;
  --color-dim-gray-900: #424242;
  --color-dim-gray-950: #161616;
}

<!-- or the exact color, no config -->
<div class="bg-[#696969] text-[#FFFFFF]">…</div>