#D997F9

Closest named color: Baby Purple (#CA9BF7). oklch(77.6% 0.151 314.1), rgb(217, 151, 249).

Aa

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

About this color

#D997F9 is a medium-light, vivid purple. In OKLCH its lightness is 78%, its chroma 0.151 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.025 away. Black text reads best on it, at 9.74:1.

Hue familyPurples
Lightnessmedium-light (78%)
Chromavivid (0.151)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.74:1
White text2.15:1

Values

HEX#D997F9
RGBrgb(217, 151, 249)
HSLhsl(280, 89%, 78%)
OKLCHoklch(77.6% 0.151 314.1)

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 #D997F9 2.15:1 Fails Lc -46.8 Large or bold text, headings
Black text on #D997F9 9.74:1 AAA Lc 61.8 Content text, not long reading
#D997F9 text on white 2.15:1 Fails Lc 42.2 Non-text elements, placeholder text
#D997F9 text on black 9.74:1 AAA Lc -60.1 Content text, not long reading

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 300.

  1. Step 50

    50

    #FAF2FF

    oklch(97.1% 0.019 312.8)

  2. Step 100

    100

    #F5E2FF

    oklch(93.7% 0.044 314.2)

  3. Step 200

    200

    #EDCAFF

    oklch(88.5% 0.081 314.1)

  4. Step 300

    300 (this color)

    #D997F9

    oklch(77.6% 0.151 314.1)

  5. Step 400

    400

    #D26BFF

    oklch(70.7% 0.224 314.3)

  6. Step 500

    500

    #C629FF

    oklch(63.1% 0.29 314.2)

  7. Step 600

    600

    #AA00DF

    oklch(55.5% 0.275 314)

  8. Step 700

    700

    #9000BD

    oklch(49.1% 0.243 314.1)

  9. Step 800

    800

    #77009C

    oklch(42.7% 0.211 314.4)

  10. Step 900

    900

    #630084

    oklch(37.6% 0.187 313.8)

  11. Step 950

    950

    #3C0450

    oklch(27% 0.127 314.3)

Export this scale for Tailwind in the Tailwind colors tool

#D997F9 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)#86ADFD0.122
Deuteranopia (no green cones)#96B2F60.111
Tritanopia (no blue cones)#D7A4BC0.103
Achromatopsia (no color)#B1B1B10.152

Harmonies

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

Complementary

The opposite hue (180°).

  • #D997F9

    #D997F9

    oklch(77.6% 0.151 314.1)

  • #8DCB62

    #8DCB62

    oklch(77.7% 0.152 134)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D997F9

    #D997F9

    oklch(77.6% 0.151 314.1)

  • #ADABFF

    #ADABFF

    oklch(77.5% 0.119 284.4)

  • #F88CCD

    #F88CCD

    oklch(77.5% 0.151 344.2)

Open the analogous palette in the generator

Split complementary

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

  • #D997F9

    #D997F9

    oklch(77.6% 0.151 314.1)

  • #C6BA2D

    #C6BA2D

    oklch(77.6% 0.151 104.3)

  • #36D49C

    #36D49C

    oklch(77.7% 0.152 164)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D997F9

    #D997F9

    oklch(77.6% 0.151 314.1)

  • #EFA52D

    #EFA52D

    oklch(77.5% 0.152 73.7)

  • #00D0CF

    #00D0CF

    oklch(77.6% 0.133 194.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D997F9

    #D997F9

    oklch(77.6% 0.151 314.1)

  • #FF9769

    #FF9769

    oklch(77.6% 0.139 44.1)

  • #8DCB62

    #8DCB62

    oklch(77.7% 0.152 134)

  • #00C9FB

    #00C9FB

    oklch(77.7% 0.146 224.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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