#B4157D

Closest named color: Medium Violet Red (#C71585). oklch(51.7% 0.207 347.7), rgb(180, 21, 125).

Aa

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

About this color

#B4157D is a medium-dark, vivid red. In OKLCH its lightness is 52%, its chroma 0.207 and its hue 348°. 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.27:1.

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

Values

HEX#B4157D
RGBrgb(180, 21, 125)
HSLhsl(321, 79%, 39%)
OKLCHoklch(51.7% 0.207 347.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 #B4157D 6.27:1 AA Lc -84.6 Fine for body text
Black text on #B4157D 3.34:1 AA large text Lc 24.7 Dividers and decoration only
#B4157D text on white 6.27:1 AA Lc 79.4 Fine for body text
#B4157D text on black 3.34:1 AA large text Lc -22.4 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

    #FAE2ED

    oklch(93.5% 0.03 348.2)

  3. Step 200

    200

    #F6CBE0

    oklch(88.5% 0.055 347.3)

  4. Step 300

    300

    #F1A6CC

    oklch(80.8% 0.1 347.8)

  5. Step 400

    400

    #E673B2

    oklch(70.7% 0.159 347.9)

  6. Step 500

    500

    #DB469F

    oklch(63% 0.204 347.8)

  7. Step 600

    600

    #C6188A

    oklch(55.5% 0.222 347.7)

  8. Step 700

    700 (this color)

    #B4157D

    oklch(51.7% 0.207 347.7)

  9. Step 800

    800

    #8B0D5F

    oklch(42.7% 0.171 348)

  10. Step 900

    900

    #70184E

    oklch(37.7% 0.133 347.9)

  11. Step 950

    950

    #42102E

    oklch(27% 0.085 347.4)

Export this scale for Tailwind in the Tailwind colors tool

#B4157D 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)#354F7F0.234
Deuteranopia (no green cones)#64697A0.201
Tritanopia (no blue cones)#C1054B0.083
Achromatopsia (no color)#6060600.208

Harmonies

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

Complementary

The opposite hue (180°).

  • #B4157D

    #B4157D

    oklch(51.7% 0.207 347.7)

  • #007B5C

    #007B5C

    oklch(51.8% 0.105 167.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B4157D

    #B4157D

    oklch(51.7% 0.207 347.7)

  • #962FB3

    #962FB3

    oklch(51.7% 0.207 317.7)

  • #C20138

    #C20138

    oklch(51.6% 0.206 17.8)

Open the analogous palette in the generator

Split complementary

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

  • #B4157D

    #B4157D

    oklch(51.7% 0.207 347.7)

  • #327B00

    #327B00

    oklch(51.6% 0.158 137.6)

  • #00777A

    #00777A

    oklch(51.7% 0.088 197.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B4157D

    #B4157D

    oklch(51.7% 0.207 347.7)

  • #6F6C00

    #6F6C00

    oklch(51.7% 0.111 107.8)

  • #007395

    #007395

    oklch(51.8% 0.1 227.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B4157D

    #B4157D

    oklch(51.7% 0.207 347.7)

  • #8A5F00

    #8A5F00

    oklch(51.8% 0.108 77.9)

  • #007B5C

    #007B5C

    oklch(51.8% 0.105 167.6)

  • #0062D1

    #0062D1

    oklch(51.7% 0.188 257.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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