Brown color (#A52A2A)
#A52A2A (Brown) is a red colour. It is rgb(165, 42, 42) in RGB and hsl(0, 59%, 41%) in HSL. Text in white reads better on it: the contrast is 7.08:1 against white and 2.96:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#A52A2A}:\quad R=\mathrm{A5}_{16}=165,\ G=\mathrm{2A}_{16}=42,\ B=\mathrm{2A}_{16}=42 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#2AA5A5} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#A52A2A} = \mathrm{rgb}(165, 42, 42) \]
\[ \mathrm{#A52A2A}:\quad R=\mathrm{A5}_{16}=165,\ G=\mathrm{2A}_{16}=42,\ B=\mathrm{2A}_{16}=42 \]
\[ H=0^\circ,\quad S=59\%,\quad L=41\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#2AA5A5} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 7.08:1\ \text{(on white)} \]Brown in every colour format
| Format | Value |
|---|---|
| HEX | #A52A2A |
| RGB | rgb(165, 42, 42) |
| RGB (percent) | rgb(64.7%, 16.5%, 16.5%) |
| HSL | hsl(0, 59%, 41%) |
| HSV / HSB | hsv(0, 75%, 65%) |
| CMYK | cmyk(0%, 75%, 75%, 35%) |
| Decimal | 10824234 |
| Description | red |
| CSS name | brown |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 7.08:1 | pass | pass | pass | pass |
| Black text | 2.96:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #1B0707 #370E0E #531515 #6E1C1C #8A2323 |
| This colour | #A52A2A |
| Tints (mixed with white) | #B44E4E #C37171 #D29595 #E1B8B8 #F0DCDC |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #4E4729 | 53 |
| Deuteranopia | #6D6226 | 54 |
| Tritanopia | #B6002C | 13 |
| Grayscale | #585858 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Firebrick | #B22222 |
| Maroon | #800000 |
| Dark red | #8B0000 |
| Indian red | #CD5C5C |
Questions
What is the RGB value of #A52A2A?
rgb(165, 42, 42): red 165, green 42, blue 42.
What is the HSL value of #A52A2A?
hsl(0, 59%, 41%): a hue of 0°, 59% saturation and 41% lightness.
What is the complementary colour of #A52A2A?
#2AA5A5, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #5AD5D5.
Should I use white or black text on #A52A2A?
White. White gives 7.08:1 and black 2.96:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #A52A2A?
cmyk(0%, 75%, 75%, 35%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #A52A2A a named colour?
Yes: it is the CSS colour name "brown".