Dim gray
Dim gray is a medium gray with no tint at all. Hex code #696969.
Color codes
- CSS name
dimgray, dimgrey - HEX
#696969 - RGB
rgb(105 105 105) - HSL
hsl(0 0% 41%) - HSB / HSV
hsb(0, 0%, 41%) - OKLCH
oklch(52.1% 0 0) - CMYK
cmyk(0%, 0%, 0%, 59%)
White text
5.48:1 · passes WCAG AA
Black text
3.82:1 · passes WCAG AA for large text only
Shades
Tones
About this color
Dim gray in CSS and design
Dim gray is a medium gray with no tint at all. Dim gray is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.
Dim gray (#696969) is darker than gray (#808080), and much darker than dark gray (#A9A9A9).
Use it in CSS by name or by any of its codes; these all give the same color:
color: dimgray;
color: #696969;
color: rgb(105 105 105);
color: hsl(0 0% 41%);For text on dim gray, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for dim gray?
#696969. In CSS you can also use the keyword dimgray or dimgrey, which works in every browser.
What is dim gray in RGB and HSL?
In RGB it is rgb(105 105 105), in HSL hsl(0 0% 41%). For print, cmyk(0%, 0%, 0%, 59%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on dim gray?
White text works better: it has a contrast ratio of 5.48:1 and passes WCAG AA. Black text reaches 3.82:1.
Which colors go with dim gray?
As a neutral, dim gray goes with almost any color. It works well as a background, border or text color next to a vivid accent, and with the lighter and darker tones from its shades.