#B5271F

Closest named color: Firebrick (#B22222). oklch(50.6% 0.179 28.7), rgb(181, 39, 31).

Aa

White text reads best on this color (6.41:1).

About this color

#B5271F is a medium-dark, vivid red. In OKLCH its lightness is 51%, its chroma 0.179 and its hue 29°. Its hue sits on the warm side of the wheel. The nearest named color is Firebrick (#B22222), ΔE 0.011 away. White text reads best on it, at 6.41:1.

Hue familyReds
Lightnessmedium-dark (51%)
Chromavivid (0.179)
Temperaturewarm
Nearest nameFirebrick (#B22222)
Black text3.27:1
White text6.41:1

Values

HEX#B5271F
RGBrgb(181, 39, 31)
HSLhsl(3, 71%, 42%)
OKLCHoklch(50.6% 0.179 28.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #B5271F 6.41:1 AA Lc -85.5 Fine for body text
Black text on #B5271F 3.27:1 AA large text Lc 23.7 Dividers and decoration only
#B5271F text on white 6.41:1 AA Lc 80.3 Fine for body text
#B5271F text on black 3.27:1 AA large text Lc -21.5 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #FDF3F1

    oklch(97.1% 0.011 31.1)

  2. Step 100

    100

    #FAE4E0

    oklch(93.6% 0.025 29.9)

  3. Step 200

    200

    #F8CEC7

    oklch(88.6% 0.049 29.1)

  4. Step 300

    300

    #F4ACA1

    oklch(81% 0.087 28.8)

  5. Step 400

    400

    #EA7C6E

    oklch(70.7% 0.138 28.6)

  6. Step 500

    500

    #E05447

    oklch(63% 0.177 28.4)

  7. Step 600

    600

    #CC3127

    oklch(55.6% 0.193 28.8)

  8. Step 700

    700 (this color)

    #B5271F

    oklch(50.6% 0.179 28.7)

  9. Step 800

    800

    #8F1F18

    oklch(42.8% 0.149 28.7)

  10. Step 900

    900

    #73211A

    oklch(37.7% 0.116 28.7)

  11. Step 950

    950

    #441510

    oklch(27.1% 0.074 28.9)

Export this scale for Tailwind in the Tailwind colors tool

#B5271F with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#544B1C0.193
Deuteranopia (no green cones)#776A170.176
Tritanopia (no blue cones)#C800270.042
Achromatopsia (no color)#5F5F5F0.181

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #B5271F

    #B5271F

    oklch(50.6% 0.179 28.7)

  • #00727F

    #00727F

    oklch(50.5% 0.087 208.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B5271F

    #B5271F

    oklch(50.6% 0.179 28.7)

  • #AE2463

    #AE2463

    oklch(50.5% 0.179 358.6)

  • #965000

    #965000

    oklch(50.5% 0.121 58.4)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #B5271F

    #B5271F

    oklch(50.6% 0.179 28.7)

  • #007666

    #007666

    oklch(50.7% 0.093 178.9)

  • #006C9E

    #006C9E

    oklch(50.5% 0.114 238.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B5271F

    #B5271F

    oklch(50.6% 0.179 28.7)

  • #007A31

    #007A31

    oklch(50.6% 0.144 148.7)

  • #3C58CA

    #3C58CA

    oklch(50.7% 0.18 268.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B5271F

    #B5271F

    oklch(50.6% 0.179 28.7)

  • #5F6D00

    #5F6D00

    oklch(50.5% 0.118 118.2)

  • #00727F

    #00727F

    oklch(50.5% 0.087 208.6)

  • #7544BB

    #7544BB

    oklch(50.6% 0.179 298.8)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B5271F, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #B5271F in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.