Inspect DarkGoldenRod (#B8860B) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DarkGoldenRod
#B8860B
Black text reads best on this background, at 6.45:1.
DarkGoldenRod is one of the 148 CSS named colors, and resolves to #B8860B in every browser. In numbers that is rgb(184, 134, 11) and hsl(43, 89%, 38%). Perceptually it is a mid-toned, moderately saturated color: OKLCH puts its lightness at 65% and its chroma at 0.132. It sits in the browns at 82 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 3.25:1 here, so black text is the safer pairing at 6.45: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 DarkGoldenRod, measured with CIEDE2000, are GoldenRod (#DAA520), Peru (#CD853F), Orange (#FFA500). If DarkGoldenRod is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#B8860B
RGB
rgb(184, 134, 11)
HSL
hsl(43, 89%, 38%)
HWB
hwb(43 4% 28%)
CMYK
cmyk(0%, 27%, 94%, 28%)
LAB
lab(59.69 13.06 62.65)
LCH
lch(59.69 63.99 78.22)
OKLCH
oklch(65.21% 0.1322 81.57)
WCAG asks for 4.5:1 between body text and its background. On #B8860B white text measures 3.25:1 and black text 6.45:1, so black clears it and white does not.
White text on DarkGoldenRod
WCAG 2.2
3.25:1
APCA
Lc 65
Fails AA body text
Fails AAA body text
Passes AA large text
Black text on DarkGoldenRod
WCAG 2.2
6.45:1
APCA
Lc 44
Passes AA body text
Fails AAA body text
Passes AA large text
Check DarkGoldenRod against any other color in the contrast checker.
DarkGoldenRod sits at 65% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF8EB and down to #0A0500, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#CD9A2F
20% lighter
#E3AF48
40% lighter
#F9C45F
60% lighter
#FFDEA3
80% lighter
#FFF8EB
100% lighter
#916800
20% darker
#6B4C00
40% darker
#483200
60% darker
#271900
80% darker
#0A0500
100% darker
Build a full accessible scale from #B8860B in the shade generator.
Hues rotated around #B8860B 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.
DarkGoldenRod sits at 82 degrees. Rotating it a half turn lands on 262 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 DarkGoldenRod at 52 and 112 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
82, 202 and 322 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 262 degrees, this pair flanks it at 232 and 292. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DarkGoldenRod on the color wheel.
The biggest shift is under tritanopia, where #B8860B reads as #DB7061, 29.3 CIEDE2000 units away. If DarkGoldenRod is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#A78004
Deuteranopia
#B48E0E
Tritanopia
#DB7061
Achromatopsia
#888888
The nearest CSS keywords to #B8860B, ranked by perceptual distance rather than by how close their hex digits happen to look.