Swatchproof

Brown #A52A2A

Brown is one of the named colours in CSS, written brown. White text reaches 7.08:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordbrown
HEX#A52A2A
RGBrgb(165 42 42)
HSLhsl(0 59% 41%)
OKLCHoklch(48.1% 0.160 25.6)
White text7.08:1 · body text AA Pass
Black text2.96:1 · body text AA Fail

Colours that go with Brown

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Carmine Red (#A62C37), nearly identical. These are the colours Wada paired it with, ranked by their contrast with Brown itself.

ColourHEXContrast with BrownBody text AA
Pale Lemon Yellow#FFEFAE6.14:1Pass
Sulpher Yellow#F5ECC25.96:1Pass
Orange Yellow#FCB3153.91:1Fail
Olive Buff#C1C4943.91:1Fail
Neutral Gray#B6BFC13.78:1Fail
Grayish Lavender - B#C0A9B33.23:1Fail
Salvia Blue#97ACC83.05:1Fail
Black#1113142.63:1Fail
Light Brown Drab#B593922.55:1Fail
Chromium Green#7194702.08:1Fail
Oil Green#8192382.06:1Fail
Buffy Citrine#96874D1.98:1Fail
Cotinga Purple#5013451.95:1Fail
Raw Sienna#BB71251.86:1Fail
Dark Tyrian Blue#12354E1.80:1Fail
Slate Color#34454C1.41:1Fail
Madder Brown#762C191.38:1Fail
Dusky Green#004F461.34:1Fail
Blue#006EB81.32:1Fail
Violet Blue#40456A1.30:1Fail
Violet#4F40861.23:1Fail

Palettes with Carmine Red

Shades and tints of Brown

Nine lightness steps in OKLCH that keep the hue of Brown. Chroma is reduced only where sRGB cannot show it.

:root {
  --brown-100: #FFF2F0;
  --brown-200: #FFDBD7;
  --brown-300: #FFBAB2;
  --brown-400: #FF8A81;
  --brown-500: #E3645D;
  --brown-600: #BD413E;
  --brown-700: #9B1E21;
  --brown-800: #73000C;
  --brown-900: #470004;
}

Text that keeps Brown on screen

Text #A52A2A on #FFF2F0 reaches 6.48:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours