Inspect DimGrey (#696969) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DimGrey
#696969
White text reads best on this background, at 5.49:1.
DimGrey is one of the 148 CSS named colors, and resolves to #696969 in every browser. In numbers that is rgb(105, 105, 105) and hsl(0, 0%, 41%). Perceptually it is a mid-toned, near-neutral color: OKLCH puts its lightness at 52% and its chroma at 0. It carries almost no chroma, so it behaves as a neutral rather than as a hue, and belongs with the grays.
White text clears WCAG AA on a DimGrey background at 5.49:1. With this little chroma it recedes, which makes it useful for borders, dividers and secondary surfaces.
The closest CSS named colors to DimGrey, measured with CIEDE2000, are Gray (#808080), Grey (#808080), SlateGray (#708090). If DimGrey is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#696969
RGB
rgb(105, 105, 105)
HSL
hsl(0, 0%, 41%)
HWB
hwb(0 41% 59%)
CMYK
cmyk(0%, 0%, 0%, 59%)
LAB
lab(44.41 0 0)
LCH
lch(44.41 0 0)
OKLCH
oklch(52.08% 0 0)
WCAG asks for 4.5:1 between body text and its background. On #696969 white text measures 5.49:1 and black text 3.83:1, so white clears it and black does not.
White text on DimGrey
WCAG 2.2
5.49:1
APCA
Lc 82
Passes AA body text
Fails AAA body text
Passes AA large text
Black text on DimGrey
WCAG 2.2
3.83:1
APCA
Lc 26
Fails AA body text
Fails AAA body text
Passes AA large text
Check DimGrey against any other color in the contrast checker.
DimGrey sits at 52% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F8F8F8 and down to #060606, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#848484
20% lighter
#A0A0A0
40% lighter
#BCBCBC
60% lighter
#DADADA
80% lighter
#F8F8F8
100% lighter
#535353
20% darker
#3D3D3D
40% darker
#292929
60% darker
#161616
80% darker
#060606
100% darker
Build a full accessible scale from #696969 in the shade generator.
DimGrey barely moves under any of the four common forms of color blindness, the largest shift being 0 CIEDE2000 units under protanopia. It stays recognizable, though it still should not be the only thing carrying meaning.
Protanopia
#696969
Deuteranopia
#696969
Tritanopia
#696969
Achromatopsia
#696969
The nearest CSS keywords to #696969, ranked by perceptual distance rather than by how close their hex digits happen to look.