Inspect Maroon (#800000) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Maroon
#800000
White text reads best on this background, at 10.95:1.
Maroon is one of the 148 CSS named colors, and resolves to #800000 in every browser. In numbers that is rgb(128, 0, 0) and hsl(0, 100%, 25%). Perceptually it is a dark, moderately saturated color: OKLCH puts its lightness at 38% and its chroma at 0.155. It sits in the reds at 29 degrees of OKLCH hue, and reads as a warm color.
White text clears WCAG AA on a Maroon background at 10.95:1, and AAA as well. 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 Maroon, measured with CIEDE2000, are DarkRed (#8B0000), Brown (#A52A2A), FireBrick (#B22222). If Maroon is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#800000
RGB
rgb(128, 0, 0)
HSL
hsl(0, 100%, 25%)
HWB
hwb(0 0% 50%)
CMYK
cmyk(0%, 100%, 100%, 50%)
LAB
lab(26.17 48.47 39.44)
LCH
lch(26.17 62.49 39.13)
OKLCH
oklch(37.67% 0.1546 29.23)
WCAG asks for 4.5:1 between body text and its background. On #800000 white text measures 10.95:1 and black text 1.92:1, so white clears it and black does not.
White text on Maroon
WCAG 2.2
10.95:1
APCA
Lc 97
Passes AA body text
Passes AAA body text
Passes AA large text
Black text on Maroon
WCAG 2.2
1.92:1
APCA
Lc 11
Fails AA body text
Fails AAA body text
Fails AA large text
Check Maroon against any other color in the contrast checker.
Maroon sits at 38% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF6F5 and down to #140000, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#A93429
20% lighter
#D25A4C
40% lighter
#FD8070
60% lighter
#FFBFB4
80% lighter
#FFF6F5
100% lighter
#680000
20% darker
#510000
40% darker
#3C0000
60% darker
#270000
80% darker
#140000
100% darker
Build a full accessible scale from #800000 in the shade generator.
Hues rotated around #800000 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.
Maroon sits at 29 degrees. Rotating it a half turn lands on 209 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 Maroon at 359 and 59 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
29, 149 and 269 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 209 degrees, this pair flanks it at 179 and 239. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Maroon on the color wheel.
The biggest shift is under protanopia, where #800000 reads as #130F00, 30 CIEDE2000 units away. If Maroon is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#130F00
Deuteranopia
#2F2400
Tritanopia
#A10001
Achromatopsia
#1B1B1B
The nearest CSS keywords to #800000, ranked by perceptual distance rather than by how close their hex digits happen to look.