#B31C7F

Closest named color: Medium Violet Red (#C71585). oklch(51.9% 0.202 346.9), rgb(179, 28, 127).

Aa

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

About this color

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

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

Values

HEX#B31C7F
RGBrgb(179, 28, 127)
HSLhsl(321, 73%, 41%)
OKLCHoklch(51.9% 0.202 346.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 #B31C7F 6.19:1 AA Lc -84.5 Fine for body text
Black text on #B31C7F 3.38:1 AA large text Lc 24.8 Dividers and decoration only
#B31C7F text on white 6.19:1 AA Lc 79.2 Fine for body text
#B31C7F text on black 3.38:1 AA large text Lc -22.6 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

    #F9E3ED

    oklch(93.6% 0.027 348.3)

  3. Step 200

    200

    #F5CBE0

    oklch(88.4% 0.054 346.7)

  4. Step 300

    300

    #F0A7CD

    oklch(80.9% 0.098 347)

  5. Step 400

    400

    #E574B4

    oklch(70.8% 0.158 346.8)

  6. Step 500

    500

    #D949A1

    oklch(63.1% 0.2 346.7)

  7. Step 600

    600

    #C41F8C

    oklch(55.6% 0.217 346.6)

  8. Step 700

    700 (this color)

    #B31C7F

    oklch(51.9% 0.202 346.9)

  9. Step 800

    800

    #891260

    oklch(42.6% 0.167 347)

  10. Step 900

    900

    #6F1A4F

    oklch(37.8% 0.131 346.9)

  11. Step 950

    950

    #41112E

    oklch(26.9% 0.083 346.8)

Export this scale for Tailwind in the Tailwind colors tool

#B31C7F 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)#3651810.229
Deuteranopia (no green cones)#646A7C0.197
Tritanopia (no blue cones)#C0144D0.083
Achromatopsia (no color)#6161610.204

Harmonies

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

Complementary

The opposite hue (180°).

  • #B31C7F

    #B31C7F

    oklch(51.9% 0.202 346.9)

  • #007C5B

    #007C5B

    oklch(52% 0.107 166.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B31C7F

    #B31C7F

    oklch(51.9% 0.202 346.9)

  • #9533B3

    #9533B3

    oklch(51.9% 0.202 317.1)

  • #C20E3C

    #C20E3C

    oklch(52% 0.203 17.1)

Open the analogous palette in the generator

Split complementary

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

  • #B31C7F

    #B31C7F

    oklch(51.9% 0.202 346.9)

  • #367C00

    #367C00

    oklch(52% 0.157 136.9)

  • #00787A

    #00787A

    oklch(51.9% 0.088 196.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B31C7F

    #B31C7F

    oklch(51.9% 0.202 346.9)

  • #716C00

    #716C00

    oklch(51.9% 0.111 106.5)

  • #007395

    #007395

    oklch(51.8% 0.1 227.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B31C7F

    #B31C7F

    oklch(51.9% 0.202 346.9)

  • #8B5F00

    #8B5F00

    oklch(51.9% 0.109 77.2)

  • #007C5B

    #007C5B

    oklch(52% 0.107 166.4)

  • #0064CF

    #0064CF

    oklch(52% 0.183 256.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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