#BA172A

Closest named color: Scarlet (#BE0119). oklch(50.6% 0.193 23.2), rgb(186, 23, 42).

Aa

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

About this color

#BA172A is a medium-dark, vivid red. In OKLCH its lightness is 51%, its chroma 0.193 and its hue 23°. Its hue sits on the warm side of the wheel. The nearest named color is Scarlet (#BE0119), ΔE 0.016 away. White text reads best on it, at 6.47:1.

Hue familyReds
Lightnessmedium-dark (51%)
Chromavivid (0.193)
Temperaturewarm
Nearest nameScarlet (#BE0119)
Black text3.24:1
White text6.47:1

Values

HEX#BA172A
RGBrgb(186, 23, 42)
HSLhsl(353, 78%, 41%)
OKLCHoklch(50.6% 0.193 23.2)

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 #BA172A 6.47:1 AA Lc -85.3 Fine for body text
Black text on #BA172A 3.24:1 AA large text Lc 23.9 Dividers and decoration only
#BA172A text on white 6.47:1 AA Lc 80.1 Fine for body text
#BA172A text on black 3.24:1 AA large text Lc -21.7 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

    #FEF2F1

    oklch(97% 0.013 23.2)

  2. Step 100

    100

    #FCE3E1

    oklch(93.6% 0.028 23.2)

  3. Step 200

    200

    #FACCC9

    oklch(88.4% 0.052 22.6)

  4. Step 300

    300

    #F7A9A4

    oklch(80.9% 0.093 23.4)

  5. Step 400

    400

    #EF7773

    oklch(70.7% 0.149 23.5)

  6. Step 500

    500

    #E64B4F

    oklch(63.1% 0.191 23.1)

  7. Step 600

    600

    #D12133

    oklch(55.5% 0.207 23.1)

  8. Step 700

    700 (this color)

    #BA172A

    oklch(50.6% 0.193 23.2)

  9. Step 800

    800

    #931320

    oklch(42.7% 0.16 23.3)

  10. Step 900

    900

    #761B20

    oklch(37.7% 0.125 22.8)

  11. Step 950

    950

    #451213

    oklch(26.9% 0.078 23)

Export this scale for Tailwind in the Tailwind colors tool

#BA172A 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)#4F48290.213
Deuteranopia (no green cones)#766A230.193
Tritanopia (no blue cones)#CD00210.038
Achromatopsia (no color)#5E5E5E0.194

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA172A

    #BA172A

    oklch(50.6% 0.193 23.2)

  • #00737B

    #00737B

    oklch(50.6% 0.086 203.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA172A

    #BA172A

    oklch(50.6% 0.193 23.2)

  • #B01B6E

    #B01B6E

    oklch(50.7% 0.193 353.3)

  • #9B4C00

    #9B4C00

    oklch(50.6% 0.128 53.5)

Open the analogous palette in the generator

Split complementary

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

  • #BA172A

    #BA172A

    oklch(50.6% 0.193 23.2)

  • #007760

    #007760

    oklch(50.7% 0.097 173)

  • #006E97

    #006E97

    oklch(50.6% 0.105 233.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA172A

    #BA172A

    oklch(50.6% 0.193 23.2)

  • #007B0C

    #007B0C

    oklch(50.5% 0.168 143.2)

  • #255AD1

    #255AD1

    oklch(50.7% 0.193 263.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA172A

    #BA172A

    oklch(50.6% 0.193 23.2)

  • #666B00

    #666B00

    oklch(50.6% 0.113 113)

  • #00737B

    #00737B

    oklch(50.6% 0.086 203.3)

  • #6E43C6

    #6E43C6

    oklch(50.6% 0.193 293.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #BA172A 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.