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.
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
| CSS keyword | dimgrey |
|---|---|
| HEX | #696969 |
| RGB | rgb(105, 105, 105) |
| HSL | hsl(0, 0%, 41%) |
| HWB | hwb(0 41% 59%) |
| OKLCH | oklch(52.1% 0 0) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 59%) |
| Decimal | 6,908,265 |
| Hue family | Grays and black |
| Same value as | dimgray |
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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on dimgrey | 3.82:1 | Fail | Pass | Fail | Fail | 26.6 |
| White text on dimgrey | 5.48:1 | Pass | Pass | Fail | Pass | −82.7 |
| Dimgrey text on white | 5.48:1 | Pass | Pass | Fail | Pass | 77.4 |
| Dimgrey text on black | 3.82:1 | Fail | Pass | Fail | Fail | −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)
- 5%
#717171 - 15%
#808080 - 25%
#8f8f8f - 35%
#9e9e9e - 45%
#adadad - 55%
#bcbcbc - 65%
#cbcbcb - 75%
#dadada - 85%
#e9e9e9 - 95%
#f8f8f8
Shades (mixed with black)
- 5%
#646464 - 15%
#595959 - 25%
#4f4f4f - 35%
#444444 - 45%
#3a3a3a - 55%
#2f2f2f - 65%
#252525 - 75%
#1a1a1a - 85%
#101010 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
.element {
color: dimgrey;
background-color: #696969;
border-color: rgb(105 105 105);
outline-color: oklch(52.1% 0 0);
}<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 */import SwiftUI
extension Color {
static let dimgrey = Color(red: 0.412, green: 0.412, blue: 0.412)
}import androidx.compose.ui.graphics.Color
val Dimgrey = Color(0xFF696969)import 'package:flutter/material.dart';
const dimgrey = Color(0xFF696969);<!-- 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.