Free Accessible CSS Gradient Generator

← All Colors
#B22222 Firebrick

Firebrick Hex Code #B22222

Firebrick is a dark, strong red with the hex code #B22222. In RGB it is 178, 34, 34, and in HSL it is 0°, 68%, 42%. It is one of the 148 named colors in CSS, so you can write “firebrick” instead of the hex code.

HEX
#B22222
RGB
rgb(178, 34, 34)
HSL
hsl(0, 68%, 42%)
HSV
hsv(0°, 81%, 70%)
CMYK
cmyk(0%, 81%, 81%, 30%)
CSS name
firebrick

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Firebrick

On a white background Firebrick has a contrast ratio of 6.68:1 (AA), and on black 3.14:1 (AA Large). White text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Red draws attention and signals urgency, which is why it is common for alerts, errors and sale tags. Because people strongly associate it with warnings, use it sparingly for anything that is not an alert.

Shades and tints of Firebrick

Tints mix Firebrick with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Firebrick

These schemes are calculated from Firebrick on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Firebrick is #22B222, close to the named color Lime Green.

Firebrick contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Firebrick scores against white and black.

Contrast of Firebrick with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 6.68:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Black (#000000) 3.14:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Aa White text on Firebrick6.68:1
Aa Black text on Firebrick3.14:1

Firebrick and color blindness

These are approximate previews of how Firebrick can look with the main types of color vision deficiency.

Protanopia #514820

Firebrick changes noticeably.

Deuteranopia #74671B

Firebrick changes noticeably.

Tritanopia #C40024

Firebrick shifts slightly.

Achromatopsia #5C5C5C

Firebrick changes noticeably.

Gradients with Firebrick

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Firebrick to a lighter tint

background: linear-gradient(135deg, #b22222 0%, #e0a7a7 100%);

Firebrick to its analogous neighbour

background: linear-gradient(135deg, #b22222 0%, #b26a22 100%);

Firebrick to its complement

background: linear-gradient(135deg, #b22222 0%, #22b2b2 100%);

Colors similar to Firebrick

How each close match differs from Firebrick.

More red colors →

Use Firebrick in code

CSS
.element {
  color: #b22222;
  background-color: #b22222;
  border-color: firebrick;   /* firebrick is a valid CSS color name */
}
CSS variable
:root {
  --color-firebrick: #b22222;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#b22222] text-[#b22222] border-[#b22222]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-firebrick: #b22222;
}

Firebrick questions

What is the hex code for Firebrick?

The hex code for Firebrick is #B22222. In RGB that is rgb(178, 34, 34), and in HSL it is hsl(0, 68%, 42%).

What is the complementary color of Firebrick?

On the RGB (screen) color wheel, the complement of Firebrick is #22B2B2, which is close to Light Sea Green. On the artist’s RYB wheel it is #22B222, close to Lime Green.

Should I use white or black text on Firebrick?

White text. It has a contrast ratio of 6.68:1 against Firebrick, which is WCAG AA. The other option scores 3.14:1.

Is Firebrick accessible as a text color on white?

Yes. Firebrick on white scores 6.68:1, which passes WCAG AA for normal text (4.5:1).

What are darker and lighter shades of Firebrick?

Mixing Firebrick with black gives #8E1B1B, #6B1414, #470E0E, #240707 (20% to 80% black). Mixing it with white gives #C14E4E, #D17A7A, #E0A7A7, #F0D3D3 (20% to 80% white).

More color tools