Brown
Hex #A52A2A, rgb(165 42 42). A brown CSS named color.
Open in palette generatorBrown color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Brown
Brown is a dark saturated brown with the hex code #A52A2A. In RGB it is made of 165 red, 42 green and 42 blue; in HSL its hue is 0°, with 59% saturation and 41% lightness. Its perceptual lightness (OKLCH L) is 48.1%.
It is a CSS named color, so you can write "brown" anywhere CSS accepts a color. Against white it has a contrast ratio of 7.08:1 and against black 2.96:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Brown mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Brown 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Brown
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Analogous
Monochromatic
Contrast and readability
WCAG 2 contrast of Brown with white and black. The readable text color on Brown is white.
On white7.08:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 83
On black2.96:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc -19
Test any pair in the contrast checker.
Color blindness preview
How Brown appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#4E4729
- Deuteranopia#6D6226
- Tritanopia#B6002C
- Protanomaly#6F4427
- Deuteranomaly#7B5726
- Tritanomaly#AC1C2A
- Achromatopsia#585858
Colors similar to Brown
The closest named colors by perceptual difference (OKLab).
Use Brown in CSS and Tailwind
.brown {
color: brown; /* #A52A2A */
background-color: rgb(165 42 42);
border-color: oklch(48.1% 0.16 25.6);
}/* Tailwind CSS v4: bg-brown-500, text-brown-700... */
@theme {
--color-brown-50: #FFF8F8;
--color-brown-100: #FFE7E4;
--color-brown-200: #FFCEC8;
--color-brown-300: #FCA69E;
--color-brown-400: #F07068;
--color-brown-500: #E24B48;
--color-brown-600: #C93837;
--color-brown-700: #A52A2A;
--color-brown-800: #832322;
--color-brown-900: #6A1E1C;
--color-brown-950: #300204;
}
<!-- or the exact color, no config -->
<div class="bg-[#A52A2A] text-[#FFFFFF]">…</div>