#BA1172

Closest named color: Medium Violet Red (#C71585). oklch(52.2% 0.207 353.7), rgb(186, 17, 114).

Aa

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

About this color

#BA1172 is a medium-dark, vivid red. In OKLCH its lightness is 52%, its chroma 0.207 and its hue 354°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.038 away. White text reads best on it, at 6.15:1.

Hue familyReds
Lightnessmedium-dark (52%)
Chromavivid (0.207)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.41:1
White text6.15:1

Values

HEX#BA1172
RGBrgb(186, 17, 114)
HSLhsl(326, 83%, 40%)
OKLCHoklch(52.2% 0.207 353.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 #BA1172 6.15:1 AA Lc -83.9 Fine for body text
Black text on #BA1172 3.41:1 AA large text Lc 25.4 Dividers and decoration only
#BA1172 text on white 6.15:1 AA Lc 78.7 Fine for body text
#BA1172 text on black 3.41:1 AA large text Lc -23.1 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

    #FDF2F6

    oklch(97.1% 0.013 353.1)

  2. Step 100

    100

    #FBE2EB

    oklch(93.6% 0.03 353.9)

  3. Step 200

    200

    #F8CBDC

    oklch(88.6% 0.055 353.6)

  4. Step 300

    300

    #F4A6C5

    oklch(80.9% 0.099 354)

  5. Step 400

    400

    #EB71A8

    oklch(70.7% 0.161 353.7)

  6. Step 500

    500

    #E04392

    oklch(63% 0.205 353.8)

  7. Step 600

    600

    #CB107D

    oklch(55.6% 0.223 353.5)

  8. Step 700

    700 (this color)

    #BA1172

    oklch(52.2% 0.207 353.7)

  9. Step 800

    800

    #8E0756

    oklch(42.6% 0.171 353.5)

  10. Step 900

    900

    #731647

    oklch(37.8% 0.134 353.7)

  11. Step 950

    950

    #441029

    oklch(27.1% 0.084 354.6)

Export this scale for Tailwind in the Tailwind colors tool

#BA1172 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)#3D4F740.236
Deuteranopia (no green cones)#6B6C6F0.207
Tritanopia (no blue cones)#C900440.076
Achromatopsia (no color)#6161610.209

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA1172

    #BA1172

    oklch(52.2% 0.207 353.7)

  • #007C65

    #007C65

    oklch(52.3% 0.1 173.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA1172

    #BA1172

    oklch(52.2% 0.207 353.7)

  • #9F2CAB

    #9F2CAB

    oklch(52.2% 0.207 323.8)

  • #C50A27

    #C50A27

    oklch(52.2% 0.207 23.6)

Open the analogous palette in the generator

Split complementary

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

  • #BA1172

    #BA1172

    oklch(52.2% 0.207 353.7)

  • #008014

    #008014

    oklch(52.1% 0.17 143.7)

  • #007881

    #007881

    oklch(52.2% 0.089 204)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA1172

    #BA1172

    oklch(52.2% 0.207 353.7)

  • #697000

    #697000

    oklch(52.1% 0.117 114)

  • #00729E

    #00729E

    oklch(52% 0.109 234.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA1172

    #BA1172

    oklch(52.2% 0.207 353.7)

  • #866300

    #866300

    oklch(52.1% 0.107 84.3)

  • #007C65

    #007C65

    oklch(52.3% 0.1 173.7)

  • #265CDE

    #265CDE

    oklch(52.2% 0.207 263.6)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #BA1172.

Similar named colors

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

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