Firebrick color (#B22222)
#B22222 (Firebrick) is a red colour. It is rgb(178, 34, 34) in RGB and hsl(0, 68%, 42%) in HSL. Text in white reads better on it: the contrast is 6.68:1 against white and 3.14: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{#B22222}:\quad R=\mathrm{B2}_{16}=178,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{22}_{16}=34 - 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{#22B2B2} - 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{#B22222} = \mathrm{rgb}(178, 34, 34) \]
\[ \mathrm{#B22222}:\quad R=\mathrm{B2}_{16}=178,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{22}_{16}=34 \]
\[ H=0^\circ,\quad S=68\%,\quad L=42\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#22B2B2} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 6.68:1\ \text{(on white)} \]Firebrick in every colour format
| Format | Value |
|---|---|
| HEX | #B22222 |
| RGB | rgb(178, 34, 34) |
| RGB (percent) | rgb(69.8%, 13.3%, 13.3%) |
| HSL | hsl(0, 68%, 42%) |
| HSV / HSB | hsv(0, 81%, 70%) |
| CMYK | cmyk(0%, 81%, 81%, 30%) |
| Decimal | 11674146 |
| Description | red |
| CSS name | firebrick |
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 | 6.68:1 | pass | pass | fail | pass |
| Black text | 3.14:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #1E0606 #3B0B0B #591111 #771717 #941C1C |
| This colour | #B22222 |
| Tints (mixed with white) | #BF4747 #CC6C6C #D99191 #E5B5B5 #F2DADA |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #514820 | 60 |
| Deuteranopia | #74671B | 60 |
| Tritanopia | #C40024 | 11 |
| Grayscale | #5C5C5C | - |
Nearest named colours
| Name | Hex |
|---|---|
| Brown | #A52A2A |
| Dark red | #8B0000 |
| Maroon | #800000 |
| Crimson | #DC143C |
Questions
What is the RGB value of #B22222?
rgb(178, 34, 34): red 178, green 34, blue 34.
What is the HSL value of #B22222?
hsl(0, 68%, 42%): a hue of 0°, 68% saturation and 42% lightness.
What is the complementary colour of #B22222?
#22B2B2, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #4DDDDD.
Should I use white or black text on #B22222?
White. White gives 6.68:1 and black 3.14:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #B22222?
cmyk(0%, 81%, 81%, 30%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #B22222 a named colour?
Yes: it is the CSS colour name "firebrick".