#D7167F

Closest named color: Medium Violet Red (#C71585). oklch(57.9% 0.228 355.7), rgb(215, 22, 127).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (58%)
Chromavivid (0.228)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text4.31:1
White text4.87:1

Values

HEX#D7167F
RGBrgb(215, 22, 127)
HSLhsl(327, 81%, 46%)
OKLCHoklch(57.9% 0.228 355.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 #D7167F 4.87:1 AA Lc -77.1 Fine for body text
Black text on #D7167F 4.31:1 AA large text Lc 32.4 Non-text elements, placeholder text
#D7167F text on white 4.87:1 AA Lc 71.7 Content text, not long reading
#D7167F text on black 4.31:1 AA large text Lc -30.0 Non-text elements, placeholder text

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

    #FEF2F6

    oklch(97.2% 0.014 355)

  2. Step 100

    100

    #FBE2EA

    oklch(93.5% 0.029 356.3)

  3. Step 200

    200

    #F9CADA

    oklch(88.4% 0.057 355.9)

  4. Step 300

    300

    #F6A5C3

    oklch(80.9% 0.102 355.8)

  5. Step 400

    400

    #ED6FA4

    oklch(70.6% 0.165 355.7)

  6. Step 500

    500

    #E33F8E

    oklch(63% 0.21 355.6)

  7. Step 600

    600 (this color)

    #D7167F

    oklch(57.9% 0.228 355.7)

  8. Step 700

    700

    #AF0065

    oklch(49.2% 0.201 355.8)

  9. Step 800

    800

    #900052

    oklch(42.6% 0.175 355.8)

  10. Step 900

    900

    #741344

    oklch(37.6% 0.137 355.7)

  11. Step 950

    950

    #450E28

    oklch(27% 0.088 355.8)

Export this scale for Tailwind in the Tailwind colors tool

#D7167F 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)#4A5B810.260
Deuteranopia (no green cones)#7E7D7B0.229
Tritanopia (no blue cones)#E9004D0.081
Achromatopsia (no color)#7171710.230

Harmonies

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

Complementary

The opposite hue (180°).

  • #D7167F

    #D7167F

    oklch(57.9% 0.228 355.7)

  • #008F77

    #008F77

    oklch(58% 0.109 175.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D7167F

    #D7167F

    oklch(57.9% 0.228 355.7)

  • #B933C1

    #B933C1

    oklch(57.9% 0.229 325.5)

  • #E21426

    #E21426

    oklch(58% 0.228 25.8)

Open the analogous palette in the generator

Split complementary

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

  • #D7167F

    #D7167F

    oklch(57.9% 0.228 355.7)

  • #00942C

    #00942C

    oklch(58% 0.179 145.7)

  • #008A97

    #008A97

    oklch(57.9% 0.099 206.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D7167F

    #D7167F

    oklch(57.9% 0.228 355.7)

  • #778300

    #778300

    oklch(58% 0.133 116)

  • #0084B9

    #0084B9

    oklch(58% 0.124 235.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D7167F

    #D7167F

    oklch(57.9% 0.228 355.7)

  • #997400

    #997400

    oklch(58% 0.119 86.3)

  • #008F77

    #008F77

    oklch(58% 0.109 175.3)

  • #3969FE

    #3969FE

    oklch(57.9% 0.228 265.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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