#D8318E

Closest named color: Medium Violet Red (#C71585). oklch(60.1% 0.216 351.9), rgb(216, 49, 142).

Aa

Black text reads best on this color (4.74:1).

About this color

#D8318E is a medium-dark, vivid red. In OKLCH its lightness is 60%, its chroma 0.216 and its hue 352°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.049 away. Black text reads best on it, at 4.74:1.

Hue familyReds
Lightnessmedium-dark (60%)
Chromavivid (0.216)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text4.74:1
White text4.42:1

Values

HEX#D8318E
RGBrgb(216, 49, 142)
HSLhsl(327, 68%, 52%)
OKLCHoklch(60.1% 0.216 351.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 #D8318E 4.42:1 AA large text Lc -74.7 Content text, not long reading
Black text on #D8318E 4.74:1 AA Lc 34.9 Non-text elements, placeholder text
#D8318E text on white 4.42:1 AA large text Lc 69.2 Content text, not long reading
#D8318E text on black 4.74:1 AA Lc -32.5 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 500.

  1. Step 50

    50

    #FEF2F6

    oklch(97.2% 0.014 355)

  2. Step 100

    100

    #FBE2EC

    oklch(93.6% 0.03 351.5)

  3. Step 200

    200

    #F9CADD

    oklch(88.5% 0.058 352.2)

  4. Step 300

    300

    #F6A4C8

    oklch(80.9% 0.106 351.8)

  5. Step 400

    400

    #ED6EAC

    oklch(70.7% 0.17 351.8)

  6. Step 500

    500 (this color)

    #D8318E

    oklch(60.1% 0.216 351.9)

  7. Step 600

    600

    #CC0081

    oklch(55.5% 0.23 351.9)

  8. Step 700

    700

    #AD006D

    oklch(49.1% 0.204 351.8)

  9. Step 800

    800

    #8F0059

    oklch(42.7% 0.177 351.9)

  10. Step 900

    900

    #741149

    oklch(37.7% 0.141 352.1)

  11. Step 950

    950

    #440E2B

    oklch(27% 0.088 351.7)

Export this scale for Tailwind in the Tailwind colors tool

#D8318E 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)#5165900.243
Deuteranopia (no green cones)#80838A0.216
Tritanopia (no blue cones)#E9205C0.079
Achromatopsia (no color)#7878780.218

Harmonies

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

Complementary

The opposite hue (180°).

  • #D8318E

    #D8318E

    oklch(60.1% 0.216 351.9)

  • #009678

    #009678

    oklch(60% 0.116 172)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D8318E

    #D8318E

    oklch(60.1% 0.216 351.9)

  • #B945CB

    #B945CB

    oklch(60.1% 0.216 322)

  • #E52D41

    #E52D41

    oklch(60.1% 0.216 21.8)

Open the analogous palette in the generator

Split complementary

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

  • #D8318E

    #D8318E

    oklch(60.1% 0.216 351.9)

  • #139C00

    #139C00

    oklch(60.2% 0.202 141.9)

  • #00929A

    #00929A

    oklch(60.1% 0.102 201.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D8318E

    #D8318E

    oklch(60.1% 0.216 351.9)

  • #838700

    #838700

    oklch(60% 0.133 111.9)

  • #008CBD

    #008CBD

    oklch(60.1% 0.123 232.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D8318E

    #D8318E

    oklch(60.1% 0.216 351.9)

  • #A57800

    #A57800

    oklch(60.2% 0.124 82.2)

  • #009678

    #009678

    oklch(60% 0.116 172)

  • #2F76FF

    #2F76FF

    oklch(60.2% 0.216 261.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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