#D170F2

Closest named color: Light Purple (#BF77F6). oklch(70.5% 0.203 316.9), rgb(209, 112, 242).

Aa

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

About this color

#D170F2 is a medium-light, vivid purple. In OKLCH its lightness is 71%, its chroma 0.203 and its hue 317°. 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.203)
Temperaturein between
Nearest nameLight Purple (#BF77F6)
Black text7.31:1
White text2.87:1

Values

HEX#D170F2
RGBrgb(209, 112, 242)
HSLhsl(285, 83%, 69%)
OKLCHoklch(70.5% 0.203 316.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 #D170F2 2.87:1 Fails Lc -59.8 Large or bold text, headings
Black text on #D170F2 7.31:1 AAA Lc 49.6 Large or bold text, headings
#D170F2 text on white 2.87:1 Fails Lc 54.5 Large or bold text, headings
#D170F2 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

    #F4E3FB

    oklch(93.6% 0.037 316.2)

  3. Step 200

    200

    #ECCBF9

    oklch(88.4% 0.071 316.4)

  4. Step 300

    300

    #E2A6F7

    oklch(80.9% 0.128 317.1)

  5. Step 400

    400 (this color)

    #D170F2

    oklch(70.5% 0.203 316.9)

  6. Step 500

    500

    #C43DEE

    oklch(63% 0.26 316.7)

  7. Step 600

    600

    #AE00D8

    oklch(55.6% 0.271 316.9)

  8. Step 700

    700

    #9300B7

    oklch(49.1% 0.24 316.9)

  9. Step 800

    800

    #790097

    oklch(42.6% 0.208 316.9)

  10. Step 900

    900

    #63107B

    oklch(37.7% 0.169 316.7)

  11. Step 950

    950

    #3A0E48

    oklch(27% 0.107 316.6)

Export this scale for Tailwind in the Tailwind colors tool

#D170F2 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)#5392F60.184
Deuteranopia (no green cones)#739BEF0.162
Tritanopia (no blue cones)#D084A70.131
Achromatopsia (no color)#9898980.205

Harmonies

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

Complementary

The opposite hue (180°).

  • #D170F2

    #D170F2

    oklch(70.5% 0.203 316.9)

  • #5BBB1D

    #5BBB1D

    oklch(70.6% 0.203 136.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D170F2

    #D170F2

    oklch(70.5% 0.203 316.9)

  • #9B8DFF

    #9B8DFF

    oklch(70.5% 0.163 287.1)

  • #F560B8

    #F560B8

    oklch(70.5% 0.203 347.1)

Open the analogous palette in the generator

Split complementary

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

  • #D170F2

    #D170F2

    oklch(70.5% 0.203 316.9)

  • #ACA500

    #ACA500

    oklch(70.5% 0.151 106.6)

  • #00BC8D

    #00BC8D

    oklch(70.6% 0.145 167)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D170F2

    #D170F2

    oklch(70.5% 0.203 316.9)

  • #D39200

    #D39200

    oklch(70.6% 0.148 77.1)

  • #00B6B9

    #00B6B9

    oklch(70.4% 0.12 196.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D170F2

    #D170F2

    oklch(70.5% 0.203 316.9)

  • #FD6F00

    #FD6F00

    oklch(70.5% 0.196 46.8)

  • #5BBB1D

    #5BBB1D

    oklch(70.6% 0.203 136.8)

  • #00B0E1

    #00B0E1

    oklch(70.6% 0.136 226.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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