#A52A2A
brown
#A52A2A is a red colour. In RGB it is 165 red, 42 green and 42 blue, which converts to a hue of 0 degrees, 59% saturation and 41% lightness. It is one of the named CSS colours, written as brown in stylesheets.
Color values
| HEX | #A52A2A |
|---|---|
| RGB | rgb(165, 42, 42) |
| HSL | hsl(0, 59%, 41%) |
| HSV | hsv(0, 75%, 65%) |
| CMYK | cmyk(0%, 75%, 75%, 35%) |
Contrast and accessibility
Against white the contrast ratio is 7.08:1, and against black it is 2.96:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 7.08:1 | AAA | AAA |
| Black | 2.96:1 | Fail | Fail |
Tints and shades
Lighter tints move #A52A2A toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #A52A2A; |
|---|---|
| CSS rgb() | color: rgb(165 42 42); |
| Tailwind | bg-[#a52a2a] |
| SwiftUI | Color(red: 0.647, green: 0.165, blue: 0.165) |
| Android | Color.parseColor("#A52A2A") |