Inspect DarkOliveGreen (#556B2F) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DarkOliveGreen
#556B2F
White text reads best on this background, at 5.95:1.
DarkOliveGreen is one of the 148 CSS named colors, and resolves to #556B2F in every browser. In numbers that is rgb(85, 107, 47) and hsl(82, 39%, 30%). Perceptually it is a mid-toned, muted color: OKLCH puts its lightness at 50% and its chroma at 0.09. It sits in the greens at 126 degrees of OKLCH hue, and reads as a warm color.
White text clears WCAG AA on a DarkOliveGreen background at 5.95:1. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to DarkOliveGreen, measured with CIEDE2000, are DarkGreen (#006400), Green (#008000), OliveDrab (#6B8E23). If DarkOliveGreen is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#556B2F
RGB
rgb(85, 107, 47)
HSL
hsl(82, 39%, 30%)
HWB
hwb(82 18% 58%)
CMYK
cmyk(21%, 0%, 56%, 58%)
LAB
lab(42.36 -16.4 30.32)
LCH
lch(42.36 34.47 118.41)
OKLCH
oklch(49.55% 0.0896 126.19)
WCAG asks for 4.5:1 between body text and its background. On #556B2F white text measures 5.95:1 and black text 3.53:1, so white clears it and black does not.
White text on DarkOliveGreen
WCAG 2.2
5.95:1
APCA
Lc 84
Passes AA body text
Fails AAA body text
Passes AA large text
Black text on DarkOliveGreen
WCAG 2.2
3.53:1
APCA
Lc 24
Fails AA body text
Fails AAA body text
Passes AA large text
Check DarkOliveGreen against any other color in the contrast checker.
DarkOliveGreen sits at 50% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F0FFDC and down to #040700, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#70884B
20% lighter
#8DA568
40% lighter
#ABC485
60% lighter
#C9E4A3
80% lighter
#F0FFDC
100% lighter
#415618
20% darker
#2E4100
40% darker
#1E2C00
60% darker
#0F1900
80% darker
#040700
100% darker
Build a full accessible scale from #556B2F in the shade generator.
Hues rotated around #556B2F in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
DarkOliveGreen sits at 126 degrees. Rotating it a half turn lands on 306 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of DarkOliveGreen at 96 and 156 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
126, 246 and 6 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 306 degrees, this pair flanks it at 276 and 336. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DarkOliveGreen on the color wheel.
The biggest shift is under achromatopsia, where #556B2F reads as #626262, 21 CIEDE2000 units away. If DarkOliveGreen is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#74632C
Deuteranopia
#716231
Tritanopia
#5A6459
Achromatopsia
#626262
The nearest CSS keywords to #556B2F, ranked by perceptual distance rather than by how close their hex digits happen to look.