#B31981

Closest named color: Medium Violet Red (#C71585). oklch(51.9% 0.206 345.9), rgb(179, 25, 129).

Aa

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

About this color

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

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

Values

HEX#B31981
RGBrgb(179, 25, 129)
HSLhsl(319, 75%, 40%)
OKLCHoklch(51.9% 0.206 345.9)

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 #B31981 6.22:1 AA Lc -84.5 Fine for body text
Black text on #B31981 3.37:1 AA large text Lc 24.8 Dividers and decoration only
#B31981 text on white 6.22:1 AA Lc 79.3 Fine for body text
#B31981 text on black 3.37:1 AA large text Lc -22.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

    #FDF2F7

    oklch(97.1% 0.013 347.9)

  2. Step 100

    100

    #F9E3EE

    oklch(93.7% 0.028 345.9)

  3. Step 200

    200

    #F5CBE1

    oklch(88.4% 0.055 345.4)

  4. Step 300

    300

    #F0A7CE

    oklch(81% 0.099 346.2)

  5. Step 400

    400

    #E573B5

    oklch(70.7% 0.16 346.2)

  6. Step 500

    500

    #DA47A3

    oklch(63.1% 0.204 346)

  7. Step 600

    600

    #C51C8E

    oklch(55.7% 0.221 346)

  8. Step 700

    700 (this color)

    #B31981

    oklch(51.9% 0.206 345.9)

  9. Step 800

    800

    #8A0F62

    oklch(42.7% 0.171 346.2)

  10. Step 900

    900

    #6F1950

    oklch(37.7% 0.133 346.1)

  11. Step 950

    950

    #41112F

    oklch(27% 0.083 345.7)

Export this scale for Tailwind in the Tailwind colors tool

#B31981 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)#3450830.232
Deuteranopia (no green cones)#636A7E0.200
Tritanopia (no blue cones)#C0124E0.086
Achromatopsia (no color)#6161610.207

Harmonies

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

Complementary

The opposite hue (180°).

  • #B31981

    #B31981

    oklch(51.9% 0.206 345.9)

  • #007C5A

    #007C5A

    oklch(52% 0.108 165.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B31981

    #B31981

    oklch(51.9% 0.206 345.9)

  • #9432B6

    #9432B6

    oklch(51.9% 0.206 315.8)

  • #C2053E

    #C2053E

    oklch(51.8% 0.205 15.9)

Open the analogous palette in the generator

Split complementary

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

  • #B31981

    #B31981

    oklch(51.9% 0.206 345.9)

  • #3A7B00

    #3A7B00

    oklch(51.9% 0.154 136)

  • #007879

    #007879

    oklch(51.9% 0.088 195.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B31981

    #B31981

    oklch(51.9% 0.206 345.9)

  • #726C00

    #726C00

    oklch(52% 0.111 105.8)

  • #007394

    #007394

    oklch(51.8% 0.099 226.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B31981

    #B31981

    oklch(51.9% 0.206 345.9)

  • #8C5E00

    #8C5E00

    oklch(51.8% 0.109 75.7)

  • #007C5A

    #007C5A

    oklch(52% 0.108 165.8)

  • #0065CB

    #0065CB

    oklch(51.9% 0.177 256)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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