#D171BA

Closest named color: Pale Magenta (#D767AD). oklch(68% 0.15 336.8), rgb(209, 113, 186).

Aa

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

About this color

#D171BA is a medium-light, vivid pink. In OKLCH its lightness is 68%, its chroma 0.150 and its hue 337°. Its hue sits on the warm side of the wheel. The nearest named color is Pale Magenta (#D767AD), ΔE 0.026 away. Black text reads best on it, at 6.78:1.

Hue familyPinks
Lightnessmedium-light (68%)
Chromavivid (0.150)
Temperaturewarm
Nearest namePale Magenta (#D767AD)
Black text6.78:1
White text3.09:1

Values

HEX#D171BA
RGBrgb(209, 113, 186)
HSLhsl(314, 51%, 63%)
OKLCHoklch(68% 0.15 336.8)

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 #D171BA 3.09:1 AA large text Lc -63.0 Content text, not long reading
Black text on #D171BA 6.78:1 AA Lc 46.5 Large or bold text, headings
#D171BA text on white 3.09:1 AA large text Lc 57.6 Large or bold text, headings
#D171BA text on black 6.78:1 AA Lc -44.2 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 400.

  1. Step 50

    50

    #FBF2F9

    oklch(97% 0.013 333)

  2. Step 100

    100

    #F6E3F1

    oklch(93.5% 0.028 334.9)

  3. Step 200

    200

    #F1CDE6

    oklch(88.6% 0.052 337.2)

  4. Step 300

    300

    #E8AAD7

    oklch(81% 0.093 336.7)

  5. Step 400

    400 (this color)

    #D171BA

    oklch(68% 0.15 336.8)

  6. Step 500

    500

    #CD52B3

    oklch(63.1% 0.19 336.7)

  7. Step 600

    600

    #B82F9F

    oklch(55.6% 0.208 336.5)

  8. Step 700

    700

    #9E1F88

    oklch(49% 0.193 336.5)

  9. Step 800

    800

    #811D6E

    oklch(42.7% 0.161 337)

  10. Step 900

    900

    #682059

    oklch(37.7% 0.124 337)

  11. Step 950

    950

    #3D1434

    oklch(26.9% 0.079 337)

Export this scale for Tailwind in the Tailwind colors tool

#D171BA 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)#7389BD0.152
Deuteranopia (no green cones)#8D98B70.138
Tritanopia (no blue cones)#DA748D0.072
Achromatopsia (no color)#9292920.151

Harmonies

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

Complementary

The opposite hue (180°).

  • #D171BA

    #D171BA

    oklch(68% 0.15 336.8)

  • #2BB372

    #2BB372

    oklch(68% 0.149 156.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D171BA

    #D171BA

    oklch(68% 0.15 336.8)

  • #B07DE0

    #B07DE0

    oklch(68% 0.15 306.6)

  • #E36C89

    #E36C89

    oklch(68% 0.15 6.6)

Open the analogous palette in the generator

Split complementary

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

  • #D171BA

    #D171BA

    oklch(68% 0.15 336.8)

  • #80A834

    #80A834

    oklch(67.9% 0.149 126.6)

  • #00B0A4

    #00B0A4

    oklch(68.1% 0.119 186.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D171BA

    #D171BA

    oklch(68% 0.15 336.8)

  • #B19700

    #B19700

    oklch(67.9% 0.14 96.8)

  • #00AAC9

    #00AAC9

    oklch(68.1% 0.122 217)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D171BA

    #D171BA

    oklch(68% 0.15 336.8)

  • #D58304

    #D58304

    oklch(68.1% 0.15 66.8)

  • #2BB372

    #2BB372

    oklch(68% 0.149 156.9)

  • #3A9FEF

    #3A9FEF

    oklch(68.1% 0.15 246.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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