Dim Gray Hex Code #696969
Dim Gray is a medium gray with the hex code #696969. In RGB it is 105, 105, 105, and in HSL it is 0°, 0%, 41%. It is one of the 148 named colors in CSS, so you can write “dimgray” instead of the hex code. It is also written as “dimgrey”.
- HEX
- #696969
- RGB
- rgb(105, 105, 105)
- HSL
- hsl(0, 0%, 41%)
- HSV
- hsv(0°, 0%, 41%)
- CMYK
- cmyk(0%, 0%, 0%, 59%)
- CSS name
- dimgray
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Dim Gray
On a white background Dim Gray has a contrast ratio of 5.49:1 (AA), and on black 3.83:1 (AA Large). White text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Grays do much of the quiet work in interface design: text, borders, backgrounds and disabled states. Because they carry no strong hue, they pair with almost any accent color.
Shades and tints of Dim Gray
Tints mix Dim Gray with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Dim Gray with an accent color
Dim Gray has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Dim Gray.
- Crimson #DC143C 1.10:1 against Dim Gray (WCAG Fail)
- Dark Orange #FF8C00 2.35:1 against Dim Gray (WCAG Fail)
- Gold #FFD700 3.91:1 against Dim Gray (WCAG AA Large)
- Sea Green #2E8B57 1.29:1 against Dim Gray (WCAG Fail)
- Royal Blue #4169E1 1.13:1 against Dim Gray (WCAG Fail)
- Dark Orchid #9932CC 1.04:1 against Dim Gray (WCAG Fail)
Dim Gray contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Dim Gray scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 5.49:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
| Black (#000000) | 3.83:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
Dim Gray and color blindness
These are approximate previews of how Dim Gray can look with the main types of color vision deficiency.
Dim Gray looks almost the same.
Dim Gray looks almost the same.
Dim Gray looks almost the same.
Dim Gray looks almost the same.
Gradients with Dim Gray
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Dim Gray to a lighter tint
background: linear-gradient(135deg, #696969 0%, #c3c3c3 100%); Dim Gray to a darker shade
background: linear-gradient(135deg, #696969 0%, #2a2a2a 100%); Colors similar to Dim Gray
How each close match differs from Dim Gray.
Use Dim Gray in code
.element {
color: #696969;
background-color: #696969;
border-color: dimgray; /* dimgray is a valid CSS color name */
} :root {
--color-dim-gray: #696969;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#696969] text-[#696969] border-[#696969]"></div>
/* Tailwind v4 theme color */
@theme {
--color-dim-gray: #696969;
} Dim Gray questions
What is the hex code for Dim Gray?
The hex code for Dim Gray is #696969. In RGB that is rgb(105, 105, 105), and in HSL it is hsl(0, 0%, 41%).
Which colors go well with Dim Gray?
Dim Gray is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Gold (3.91:1), Dark Orange (2.35:1), Sea Green (1.29:1).
Should I use white or black text on Dim Gray?
White text. It has a contrast ratio of 5.49:1 against Dim Gray, which is WCAG AA. The other option scores 3.83:1.
Is Dim Gray accessible as a text color on white?
Yes. Dim Gray on white scores 5.49:1, which passes WCAG AA for normal text (4.5:1).
What are darker and lighter shades of Dim Gray?
Mixing Dim Gray with black gives #545454, #3F3F3F, #2A2A2A, #151515 (20% to 80% black). Mixing it with white gives #878787, #A5A5A5, #C3C3C3, #E1E1E1 (20% to 80% white).