Skip to content

CSS named color

DimGrey #696969

DimGrey (CSS keyword dimgrey) has the hex code #696969 and the RGB value rgb(105, 105, 105): a medium-dark neutral gray.

DimGrey#696969

British spelling of dimgray, same value (#696969). It has enough contrast with white for normal-size text under WCAG AA.

The keyword dimgray has exactly the same value (#696969); browsers treat them as the same color.

Color codes for DimGrey

Color codes for DimGrey
CSS keyworddimgrey
HEX#696969
RGBrgb(105, 105, 105)
HSLhsl(0, 0%, 41%)
HWBhwb(0 41% 59%)
OKLCHoklch(52.1% 0 0)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 59%)
Decimal6,908,265
Hue familyGrays and black
Same value asdimgray

Contrast and accessibility

On dimgrey, white text has a contrast ratio of 5.48:1 and passes AA for normal text; black text reaches 3.82:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on dimgrey3.82:1FailPassFailFail26.6
White text on dimgrey5.48:1PassPassFailPass−82.7
Dimgrey text on white5.48:1PassPassFailPass77.4
Dimgrey text on black3.82:1FailPassFailFail−24.3

Tints and shades

Each step mixes dimgrey with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, dimgrey, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #717171
  2. 15%
    #808080
  3. 25%
    #8f8f8f
  4. 35%
    #9e9e9e
  5. 45%
    #adadad
  6. 55%
    #bcbcbc
  7. 65%
    #cbcbcb
  8. 75%
    #dadada
  9. 85%
    #e9e9e9
  10. 95%
    #f8f8f8

Shades (mixed with black)

  1. 5%
    #646464
  2. 15%
    #595959
  3. 25%
    #4f4f4f
  4. 35%
    #444444
  5. 45%
    #3a3a3a
  6. 55%
    #2f2f2f
  7. 65%
    #252525
  8. 75%
    #1a1a1a
  9. 85%
    #101010
  10. 95%
    #050505

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, dimgrey's complementary color is #696969 (close to dimgray), its analogous colors are #696969 and #696969, and its triadic partners are #696969 and #696969. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#696969
Analogous−30°, +30°#696969#696969
Triadic+120°, +240°#696969#696969
Split-complementary+150°, +210°#696969#696969

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

DimGrey is close to neutral: its OKLCH chroma is only 0.000, so its temperature comes from context. It has no perceptible hue.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
slategray#7080907.8
gray#8080807.9
darkolivegreen#556b2f9.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
taupe-500#7c6d673.4
stone-500#79716b3.5
zinc-500#71717b3.5

Code snippets

CSS
.element {
  color: dimgrey;
  background-color: #696969;
  border-color: rgb(105 105 105);
  outline-color: oklch(52.1% 0 0);
}
Tailwind CSS
<div class="bg-[#696969] text-white">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-dimgrey: #696969;
}
/* then use bg-dimgrey, text-dimgrey, border-dimgrey */
SwiftUI
import SwiftUI

extension Color {
  static let dimgrey = Color(red: 0.412, green: 0.412, blue: 0.412)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Dimgrey = Color(0xFF696969)
Flutter
import 'package:flutter/material.dart';

const dimgrey = Color(0xFF696969);
Android XML
<!-- res/values/colors.xml -->
<color name="dimgrey">#696969</color>

Frequently asked questions

What is the hex code for dimgrey?
The hex code for dimgrey is #696969. The same color is rgb(105, 105, 105), hsl(0, 0%, 41%) and oklch(52.1% 0 0), and in CSS you can also write the keyword dimgrey directly.
Is dimgrey a warm or cool color?
DimGrey is close to neutral: its OKLCH chroma is only 0.000, so its temperature comes from context. It has no perceptible hue.
What colors go with dimgrey?
Rotating the hue in OKLCH while keeping lightness and chroma, dimgrey's complementary color is #696969 (close to dimgray), its analogous colors are #696969 and #696969, and its triadic partners are #696969 and #696969. For text on top, white gives the higher contrast.
Can you use white text on dimgrey?
White text on dimgrey has a contrast ratio of 5.48:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.82:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −82.7 for white and Lc 26.6 for black.
Is dimgrey the same as dimgray?
Yes. Both keywords are #696969 (rgb(105, 105, 105)). CSS Color 4 keeps both for compatibility, so use whichever your codebase already uses.

Last reviewed by Arielton Oberek.