CSS named color
DimGray #696969
DimGray (CSS keyword dimgray) has the hex code #696969 and the RGB value rgb(105, 105, 105): a medium-dark neutral gray.
Dim gray (#696969) is darker than both gray and darkgray, so the order from light to dark is darkgray, gray, dimgray. It is a common color for secondary text.
The keyword dimgrey has exactly the same value (#696969); browsers treat them as the same color.
Color codes for DimGray
| CSS keyword | dimgray |
|---|---|
| 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 | dimgrey |
Contrast and accessibility
On dimgray, 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 dimgray | 3.82:1 | Fail | Pass | Fail | Fail | 26.6 |
| White text on dimgray | 5.48:1 | Pass | Pass | Fail | Pass | −82.7 |
| Dimgray text on white | 5.48:1 | Pass | Pass | Fail | Pass | 77.4 |
| Dimgray text on black | 3.82:1 | Fail | Pass | Fail | Fail | −24.3 |
Tints and shades
Each step mixes dimgray with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, dimgray, 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, dimgray'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?
DimGray 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: dimgray;
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-dimgray: #696969;
}
/* then use bg-dimgray, text-dimgray, border-dimgray */import SwiftUI
extension Color {
static let dimgray = Color(red: 0.412, green: 0.412, blue: 0.412)
}import androidx.compose.ui.graphics.Color
val Dimgray = Color(0xFF696969)import 'package:flutter/material.dart';
const dimgray = Color(0xFF696969);<!-- res/values/colors.xml -->
<color name="dimgray">#696969</color>Frequently asked questions
- What is the hex code for dimgray?
- The hex code for dimgray 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 dimgray directly.
- Is dimgray a warm or cool color?
- DimGray 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 dimgray?
- Rotating the hue in OKLCH while keeping lightness and chroma, dimgray'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 dimgray?
- White text on dimgray 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 dimgray the same as dimgrey?
- 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.