#D172F2

Closest named color: Light Purple (#BF77F6). oklch(70.8% 0.2 316.7), rgb(209, 114, 242).

Aa

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

About this color

#D172F2 is a medium-light, vivid purple. In OKLCH its lightness is 71%, its chroma 0.200 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.032 away. Black text reads best on it, at 7.40:1.

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

Values

HEX#D172F2
RGBrgb(209, 114, 242)
HSLhsl(285, 83%, 70%)
OKLCHoklch(70.8% 0.2 316.7)

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 #D172F2 2.83:1 Fails Lc -59.3 Large or bold text, headings
Black text on #D172F2 7.40:1 AAA Lc 50.0 Large or bold text, headings
#D172F2 text on white 2.83:1 Fails Lc 54.0 Large or bold text, headings
#D172F2 text on black 7.40:1 AAA Lc -47.8 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

    #ECCCF8

    oklch(88.6% 0.069 316.8)

  4. Step 300

    300

    #E1A7F6

    oklch(80.9% 0.124 316.8)

  5. Step 400

    400 (this color)

    #D172F2

    oklch(70.8% 0.2 316.7)

  6. Step 500

    500

    #C340ED

    oklch(63.1% 0.255 316.5)

  7. Step 600

    600

    #AE00D9

    oklch(55.7% 0.272 316.6)

  8. Step 700

    700

    #9300B7

    oklch(49.1% 0.24 316.9)

  9. Step 800

    800

    #790098

    oklch(42.7% 0.209 316.6)

  10. Step 900

    900

    #62127A

    oklch(37.6% 0.166 316.5)

  11. Step 950

    950

    #3A0F48

    oklch(27.1% 0.106 316.5)

Export this scale for Tailwind in the Tailwind colors tool

#D172F2 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)#5693F60.180
Deuteranopia (no green cones)#759CEF0.159
Tritanopia (no blue cones)#D086A80.130
Achromatopsia (no color)#9999990.201

Harmonies

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

Complementary

The opposite hue (180°).

  • #D172F2

    #D172F2

    oklch(70.8% 0.2 316.7)

  • #5EBB23

    #5EBB23

    oklch(70.7% 0.2 136.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D172F2

    #D172F2

    oklch(70.8% 0.2 316.7)

  • #9B8EFF

    #9B8EFF

    oklch(70.7% 0.161 286.8)

  • #F463B9

    #F463B9

    oklch(70.8% 0.199 346.7)

Open the analogous palette in the generator

Split complementary

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

  • #D172F2

    #D172F2

    oklch(70.8% 0.2 316.7)

  • #ADA600

    #ADA600

    oklch(70.8% 0.152 106.7)

  • #00BD8D

    #00BD8D

    oklch(70.8% 0.146 166.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D172F2

    #D172F2

    oklch(70.8% 0.2 316.7)

  • #D49200

    #D49200

    oklch(70.7% 0.148 76.6)

  • #00B7BA

    #00B7BA

    oklch(70.7% 0.12 196.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D172F2

    #D172F2

    oklch(70.8% 0.2 316.7)

  • #FF7000

    #FF7000

    oklch(70.9% 0.197 46.8)

  • #5EBB23

    #5EBB23

    oklch(70.7% 0.2 136.7)

  • #00B1E2

    #00B1E2

    oklch(70.9% 0.136 226.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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