#BA217F

Closest named color: Medium Violet Red (#C71585). oklch(53.4% 0.203 349.1), rgb(186, 33, 127).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (53%)
Chromavivid (0.203)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.61:1
White text5.81:1

Values

HEX#BA217F
RGBrgb(186, 33, 127)
HSLhsl(323, 70%, 43%)
OKLCHoklch(53.4% 0.203 349.1)

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 #BA217F 5.81:1 AA Lc -82.8 Fine for body text
Black text on #BA217F 3.61:1 AA large text Lc 26.6 Dividers and decoration only
#BA217F text on white 5.81:1 AA Lc 77.5 Fine for body text
#BA217F text on black 3.61:1 AA large text Lc -24.3 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 600.

  1. Step 50

    50

    #FCF2F7

    oklch(97% 0.013 345.5)

  2. Step 100

    100

    #F8E3ED

    oklch(93.6% 0.026 347.1)

  3. Step 200

    200

    #F4CCDE

    oklch(88.5% 0.051 349.3)

  4. Step 300

    300

    #EEA9CA

    oklch(81% 0.091 349.1)

  5. Step 400

    400

    #E277AF

    oklch(70.6% 0.147 348.9)

  6. Step 500

    500

    #D64F9B

    oklch(63.1% 0.186 348.9)

  7. Step 600

    600 (this color)

    #BA217F

    oklch(53.4% 0.203 349.1)

  8. Step 700

    700

    #A71A71

    oklch(49.2% 0.189 349.2)

  9. Step 800

    800

    #871A5C

    oklch(42.6% 0.156 349)

  10. Step 900

    900

    #6D1E4B

    oklch(37.7% 0.121 349.4)

  11. Step 950

    950

    #40132C

    oklch(26.9% 0.077 349.1)

Export this scale for Tailwind in the Tailwind colors tool

#BA217F 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)#3D54810.230
Deuteranopia (no green cones)#6A6F7C0.201
Tritanopia (no blue cones)#C8144F0.079
Achromatopsia (no color)#6565650.205

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA217F

    #BA217F

    oklch(53.4% 0.203 349.1)

  • #008062

    #008062

    oklch(53.3% 0.107 169.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA217F

    #BA217F

    oklch(53.4% 0.203 349.1)

  • #9C36B5

    #9C36B5

    oklch(53.3% 0.203 319)

  • #C7183A

    #C7183A

    oklch(53.3% 0.203 19.2)

Open the analogous palette in the generator

Split complementary

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

  • #BA217F

    #BA217F

    oklch(53.4% 0.203 349.1)

  • #2C8200

    #2C8200

    oklch(53.3% 0.169 139.1)

  • #007D81

    #007D81

    oklch(53.5% 0.091 198.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA217F

    #BA217F

    oklch(53.4% 0.203 349.1)

  • #737200

    #737200

    oklch(53.5% 0.116 109.2)

  • #00789D

    #00789D

    oklch(53.5% 0.105 228.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA217F

    #BA217F

    oklch(53.4% 0.203 349.1)

  • #8F6400

    #8F6400

    oklch(53.4% 0.111 79.2)

  • #008062

    #008062

    oklch(53.3% 0.107 169.1)

  • #0864DF

    #0864DF

    oklch(53.3% 0.203 259.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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