Inspect DarkKhaki (#BDB76B) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DarkKhaki
#BDB76B
Black text reads best on this background, at 10.15:1.
DarkKhaki is one of the 148 CSS named colors, and resolves to #BDB76B in every browser. In numbers that is rgb(189, 183, 107) and hsl(56, 38%, 58%). Perceptually it is a light, muted color: OKLCH puts its lightness at 77% and its chroma at 0.098. It sits in the yellows at 105 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 2.07:1 here, so black text is the safer pairing at 10.15: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 DarkKhaki, measured with CIEDE2000, are Khaki (#F0E68C), Tan (#D2B48C), PaleGoldenRod (#EEE8AA). If DarkKhaki is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#BDB76B
RGB
rgb(189, 183, 107)
HSL
hsl(56, 38%, 58%)
HWB
hwb(56 42% 26%)
CMYK
cmyk(0%, 3%, 43%, 26%)
LAB
lab(73.65 -5.82 39.28)
LCH
lch(73.65 39.71 98.42)
OKLCH
oklch(76.75% 0.098 104.51)
WCAG asks for 4.5:1 between body text and its background. On #BDB76B white text measures 2.07:1 and black text 10.15:1, so black clears it and white does not.
White text on DarkKhaki
WCAG 2.2
2.07:1
APCA
Lc 44
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on DarkKhaki
WCAG 2.2
10.15:1
APCA
Lc 63
Passes AA body text
Passes AAA body text
Passes AA large text
Check DarkKhaki against any other color in the contrast checker.
DarkKhaki sits at 77% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFFCC8 and down to #070600, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#CBC578
20% lighter
#D8D286
40% lighter
#E6E093
60% lighter
#F4EEA1
80% lighter
#FFFCC8
100% lighter
#958F43
20% darker
#6F6817
40% darker
#494400
60% darker
#262200
80% darker
#070600
100% darker
Build a full accessible scale from #BDB76B in the shade generator.
Hues rotated around #BDB76B 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.
DarkKhaki sits at 105 degrees. Rotating it a half turn lands on 285 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 DarkKhaki at 75 and 135 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
105, 225 and 345 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 285 degrees, this pair flanks it at 255 and 315. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DarkKhaki on the color wheel.
The biggest shift is under tritanopia, where #BDB76B reads as #CCABA0, 23.4 CIEDE2000 units away. If DarkKhaki is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#C7B067
Deuteranopia
#CBB56D
Tritanopia
#CCABA0
Achromatopsia
#B3B3B3
The nearest CSS keywords to #BDB76B, ranked by perceptual distance rather than by how close their hex digits happen to look.