#D797EF

Closest named color: Baby Purple (#CA9BF7). oklch(76.9% 0.139 316.5), rgb(215, 151, 239).

Aa

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

About this color

#D797EF is a medium-light, moderately saturated purple. In OKLCH its lightness is 77%, its chroma 0.139 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.023 away. Black text reads best on it, at 9.56:1.

Hue familyPurples
Lightnessmedium-light (77%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.56:1
White text2.19:1

Values

HEX#D797EF
RGBrgb(215, 151, 239)
HSLhsl(284, 73%, 76%)
OKLCHoklch(76.9% 0.139 316.5)

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 #D797EF 2.19:1 Fails Lc -47.8 Large or bold text, headings
Black text on #D797EF 9.56:1 AAA Lc 60.9 Content text, not long reading
#D797EF text on white 2.19:1 Fails Lc 43.1 Non-text elements, placeholder text
#D797EF text on black 9.56:1 AAA Lc -59.1 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 300.

  1. Step 50

    50

    #FBF2FE

    oklch(97.2% 0.018 317.7)

  2. Step 100

    100

    #F5E2FC

    oklch(93.6% 0.04 317)

  3. Step 200

    200

    #EECAFC

    oklch(88.5% 0.078 316.5)

  4. Step 300

    300 (this color)

    #D797EF

    oklch(76.9% 0.139 316.5)

  5. Step 400

    400

    #D56AFB

    oklch(70.7% 0.222 316.3)

  6. Step 500

    500

    #C92AF8

    oklch(63.1% 0.285 316.5)

  7. Step 600

    600

    #AE00D9

    oklch(55.7% 0.272 316.6)

  8. Step 700

    700

    #9300B8

    oklch(49.2% 0.24 316.6)

  9. Step 800

    800

    #790098

    oklch(42.7% 0.209 316.6)

  10. Step 900

    900

    #650080

    oklch(37.6% 0.184 316.3)

  11. Step 950

    950

    #3C094B

    oklch(27.1% 0.117 316.9)

Export this scale for Tailwind in the Tailwind colors tool

#D797EF 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)#8AABF20.114
Deuteranopia (no green cones)#99B1EC0.106
Tritanopia (no blue cones)#D6A2B80.092
Achromatopsia (no color)#AFAFAF0.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #D797EF

    #D797EF

    oklch(76.9% 0.139 316.5)

  • #89C86C

    #89C86C

    oklch(76.9% 0.14 136.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D797EF

    #D797EF

    oklch(76.9% 0.139 316.5)

  • #AEA8FF

    #AEA8FF

    oklch(77% 0.123 286.3)

  • #F38EC6

    #F38EC6

    oklch(77% 0.139 346.5)

Open the analogous palette in the generator

Split complementary

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

  • #D797EF

    #D797EF

    oklch(76.9% 0.139 316.5)

  • #BFB941

    #BFB941

    oklch(76.9% 0.139 106.5)

  • #41D0A0

    #41D0A0

    oklch(77% 0.14 166.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D797EF

    #D797EF

    oklch(76.9% 0.139 316.5)

  • #E6A73D

    #E6A73D

    oklch(77% 0.139 76.5)

  • #00CDD0

    #00CDD0

    oklch(76.9% 0.131 196.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D797EF

    #D797EF

    oklch(76.9% 0.139 316.5)

  • #FC9663

    #FC9663

    oklch(77% 0.14 46.5)

  • #89C86C

    #89C86C

    oklch(76.9% 0.14 136.5)

  • #2BC5F8

    #2BC5F8

    oklch(77% 0.139 226.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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