Firebrick
Firebrick is a medium, rich color from the red family. Hex code #B22222.
Color codes
- CSS name
firebrick - HEX
#B22222 - RGB
rgb(178 34 34) - HSL
hsl(0 68% 42%) - HSB / HSV
hsb(0, 81%, 70%) - OKLCH
oklch(49.7% 0.18 26.8) - CMYK
cmyk(0%, 81%, 81%, 30%)
White text
6.67:1 · passes WCAG AA
Black text
3.14:1 · passes WCAG AA for large text only
Shades
Complementary
Analogous
Triadic
About this color
Firebrick in CSS and design
Firebrick is a medium, rich color from the red family. Firebrick is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.
Use it in CSS by name or by any of its codes; these all give the same color:
color: firebrick;
color: #B22222;
color: rgb(178 34 34);
color: hsl(0 68% 42%);For text on firebrick, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for firebrick?
#B22222. In CSS you can also use the keyword firebrick, which works in every browser.
What is firebrick in RGB and HSL?
In RGB it is rgb(178 34 34), in HSL hsl(0 68% 42%). For print, cmyk(0%, 81%, 81%, 30%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on firebrick?
White text works better: it has a contrast ratio of 6.67:1 and passes WCAG AA. Black text reaches 3.14:1.
Which colors go with firebrick?
Its complementary color is #1A6F78, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #AA2164 and #934D06. The palette generator builds more combinations.