#D171EF

Closest named color: Light Purple (#BF77F6). oklch(70.5% 0.198 317.6), rgb(209, 113, 239).

Aa

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

About this color

#D171EF is a medium-light, vivid purple. In OKLCH its lightness is 71%, its chroma 0.198 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Purple (#BF77F6), ΔE 0.033 away. Black text reads best on it, at 7.31:1.

Hue familyPurples
Lightnessmedium-light (71%)
Chromavivid (0.198)
Temperaturein between
Nearest nameLight Purple (#BF77F6)
Black text7.31:1
White text2.86:1

Values

HEX#D171EF
RGBrgb(209, 113, 239)
HSLhsl(286, 80%, 69%)
OKLCHoklch(70.5% 0.198 317.6)

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 #D171EF 2.86:1 Fails Lc -59.7 Large or bold text, headings
Black text on #D171EF 7.31:1 AAA Lc 49.6 Large or bold text, headings
#D171EF text on white 2.86:1 Fails Lc 54.4 Large or bold text, headings
#D171EF text on black 7.31:1 AAA Lc -47.4 Large or bold text, headings

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

    #FAF2FD

    oklch(97% 0.017 316.9)

  2. Step 100

    100

    #F4E3FA

    oklch(93.6% 0.036 317.3)

  3. Step 200

    200

    #ECCCF7

    oklch(88.5% 0.067 317.4)

  4. Step 300

    300

    #E2A7F5

    oklch(81% 0.124 317.7)

  5. Step 400

    400 (this color)

    #D171EF

    oklch(70.5% 0.198 317.6)

  6. Step 500

    500

    #C440EA

    oklch(63% 0.253 317.5)

  7. Step 600

    600

    #AF00D6

    oklch(55.6% 0.27 317.7)

  8. Step 700

    700

    #9400B5

    oklch(49.1% 0.238 317.8)

  9. Step 800

    800

    #7A0096

    oklch(42.7% 0.207 317.7)

  10. Step 900

    900

    #631279

    oklch(37.7% 0.166 317.5)

  11. Step 950

    950

    #3A0F47

    oklch(27% 0.104 317.2)

Export this scale for Tailwind in the Tailwind colors tool

#D171EF 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)#5692F30.181
Deuteranopia (no green cones)#769CEC0.160
Tritanopia (no blue cones)#D084A60.127
Achromatopsia (no color)#9898980.200

Harmonies

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

Complementary

The opposite hue (180°).

  • #D171EF

    #D171EF

    oklch(70.5% 0.198 317.6)

  • #5ABB29

    #5ABB29

    oklch(70.6% 0.199 137.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D171EF

    #D171EF

    oklch(70.5% 0.198 317.6)

  • #9C8CFF

    #9C8CFF

    oklch(70.4% 0.164 287.8)

  • #F462B6

    #F462B6

    oklch(70.5% 0.199 347.8)

Open the analogous palette in the generator

Split complementary

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

  • #D171EF

    #D171EF

    oklch(70.5% 0.198 317.6)

  • #ABA600

    #ABA600

    oklch(70.6% 0.152 107.6)

  • #00BC8E

    #00BC8E

    oklch(70.6% 0.144 167.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D171EF

    #D171EF

    oklch(70.5% 0.198 317.6)

  • #D29200

    #D29200

    oklch(70.5% 0.147 77.5)

  • #00B6BA

    #00B6BA

    oklch(70.4% 0.12 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D171EF

    #D171EF

    oklch(70.5% 0.198 317.6)

  • #FC7100

    #FC7100

    oklch(70.6% 0.193 47.7)

  • #5ABB29

    #5ABB29

    oklch(70.6% 0.199 137.6)

  • #00AFE2

    #00AFE2

    oklch(70.4% 0.137 227.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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