Toolman

firebrick — #B22222

#B22222

rgb(178, 34, 34) · hsl(0, 68%, 42%) · CSS keyword firebrick

Can you put text on it?

ContrastBody textLarge text
firebrick on white6.68:1AAAA
firebrick on black3.14:1AA

As a background, firebrick takes white text: 6.68:1 against 3.14:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: firebrick;
color: #b22222;
color: rgb(178 34 34);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to firebrick

Frequently asked questions

What is the hex code for firebrick?

The hex code for firebrick is #B22222 — RGB 178, 34, 34.

Can I use firebrick for text?

Yes. firebrick reaches 6.68:1 against white, past the 4.5:1 that WCAG AA asks for body text.

Should text on firebrick be black or white?

White — 6.68:1 against 3.14:1 the other way.

Other named colours

#B22222 in full — tints, shades and harmonies · All named colours · Colour reference