#D17FEF

Closest named color: Liliac (#C48EFD). oklch(72.5% 0.176 316.4), rgb(209, 127, 239).

Aa

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

About this color

#D17FEF is a medium-light, vivid purple. In OKLCH its lightness is 73%, its chroma 0.176 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.040 away. Black text reads best on it, at 7.99:1.

Hue familyPurples
Lightnessmedium-light (73%)
Chromavivid (0.176)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.99:1
White text2.62:1

Values

HEX#D17FEF
RGBrgb(209, 127, 239)
HSLhsl(284, 78%, 72%)
OKLCHoklch(72.5% 0.176 316.4)

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 #D17FEF 2.62:1 Fails Lc -56.1 Large or bold text, headings
Black text on #D17FEF 7.99:1 AAA Lc 53.1 Large or bold text, headings
#D17FEF text on white 2.62:1 Fails Lc 50.9 Large or bold text, headings
#D17FEF text on black 7.99:1 AAA Lc -51.0 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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F3E4F9

    oklch(93.7% 0.032 316.4)

  3. Step 200

    200

    #EACDF5

    oklch(88.5% 0.062 316.7)

  4. Step 300

    300

    #DDAAF0

    oklch(80.8% 0.111 316.7)

  5. Step 400

    400 (this color)

    #D17FEF

    oklch(72.5% 0.176 316.4)

  6. Step 500

    500

    #BD4FE2

    oklch(63.1% 0.226 316.5)

  7. Step 600

    600

    #A827CF

    oklch(55.5% 0.245 316.5)

  8. Step 700

    700

    #9015B4

    oklch(49.1% 0.228 316.2)

  9. Step 800

    800

    #751891

    oklch(42.7% 0.188 316.5)

  10. Step 900

    900

    #5F1E74

    oklch(37.8% 0.147 316.6)

  11. Step 950

    950

    #381344

    oklch(27% 0.094 316.9)

Export this scale for Tailwind in the Tailwind colors tool

#D17FEF 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)#6A9BF30.153
Deuteranopia (no green cones)#81A2EC0.138
Tritanopia (no blue cones)#D08FAC0.116
Achromatopsia (no color)#A0A0A00.177

Harmonies

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

Complementary

The opposite hue (180°).

  • #D17FEF

    #D17FEF

    oklch(72.5% 0.176 316.4)

  • #6EBE43

    #6EBE43

    oklch(72.5% 0.176 136.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D17FEF

    #D17FEF

    oklch(72.5% 0.176 316.4)

  • #A096FF

    #A096FF

    oklch(72.6% 0.15 286.4)

  • #F272BC

    #F272BC

    oklch(72.5% 0.177 346.6)

Open the analogous palette in the generator

Split complementary

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

  • #D17FEF

    #D17FEF

    oklch(72.5% 0.176 316.4)

  • #B3AB00

    #B3AB00

    oklch(72.5% 0.155 106.3)

  • #00C391

    #00C391

    oklch(72.5% 0.15 166.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D17FEF

    #D17FEF

    oklch(72.5% 0.176 316.4)

  • #DB9700

    #DB9700

    oklch(72.5% 0.152 76.6)

  • #00BDC0

    #00BDC0

    oklch(72.4% 0.123 196.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D17FEF

    #D17FEF

    oklch(72.5% 0.176 316.4)

  • #FC7C35

    #FC7C35

    oklch(72.4% 0.176 46.3)

  • #6EBE43

    #6EBE43

    oklch(72.5% 0.176 136.4)

  • #00B7E9

    #00B7E9

    oklch(72.6% 0.139 226.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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