#D798ED

Closest named color: Baby Purple (#CA9BF7). oklch(77% 0.135 317.1), rgb(215, 152, 237).

Aa

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

About this color

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

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

Values

HEX#D798ED
RGBrgb(215, 152, 237)
HSLhsl(284, 70%, 76%)
OKLCHoklch(77% 0.135 317.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 #D798ED 2.18:1 Fails Lc -47.6 Large or bold text, headings
Black text on #D798ED 9.60:1 AAA Lc 61.1 Content text, not long reading
#D798ED text on white 2.18:1 Fails Lc 42.9 Non-text elements, placeholder text
#D798ED text on black 9.60:1 AAA Lc -59.3 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

    #EECAFA

    oklch(88.5% 0.075 317.6)

  4. Step 300

    300 (this color)

    #D798ED

    oklch(77% 0.135 317.1)

  5. Step 400

    400

    #D56CF7

    oklch(70.7% 0.216 317.2)

  6. Step 500

    500

    #C831F4

    oklch(63.1% 0.276 316.9)

  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

    #65047E

    oklch(37.6% 0.18 317)

  11. Step 950

    950

    #3B0A4A

    oklch(26.9% 0.114 316.6)

Export this scale for Tailwind in the Tailwind colors tool

#D798ED 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)#8CABF00.111
Deuteranopia (no green cones)#9BB1EA0.102
Tritanopia (no blue cones)#D7A3B80.090
Achromatopsia (no color)#AFAFAF0.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #D798ED

    #D798ED

    oklch(77% 0.135 317.1)

  • #8AC870

    #8AC870

    oklch(77% 0.135 137)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D798ED

    #D798ED

    oklch(77% 0.135 317.1)

  • #AFA8FF

    #AFA8FF

    oklch(77.1% 0.123 286.8)

  • #F28FC5

    #F28FC5

    oklch(77% 0.135 346.9)

Open the analogous palette in the generator

Split complementary

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

  • #D798ED

    #D798ED

    oklch(77% 0.135 317.1)

  • #BEBA47

    #BEBA47

    oklch(77% 0.136 107.3)

  • #46CFA2

    #46CFA2

    oklch(76.9% 0.135 167.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D798ED

    #D798ED

    oklch(77% 0.135 317.1)

  • #E4A842

    #E4A842

    oklch(77% 0.135 77.2)

  • #00CDD1

    #00CDD1

    oklch(76.9% 0.131 197.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D798ED

    #D798ED

    oklch(77% 0.135 317.1)

  • #FA9865

    #FA9865

    oklch(77.1% 0.135 47.5)

  • #8AC870

    #8AC870

    oklch(77% 0.135 137)

  • #37C5F7

    #37C5F7

    oklch(77.1% 0.135 227)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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