#D798E5
Closest named color: Plum (#DDA0DD). oklch(76.7% 0.126 320.2), rgb(215, 152, 229).
Aa
Black text reads best on this color (9.51:1).
About this color
#D798E5 is a medium-light, moderately saturated purple. In OKLCH its lightness is 77%, its chroma 0.126 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Plum (#DDA0DD), ΔE 0.028 away. Black text reads best on it, at 9.51:1.
| Hue family | Purples |
| Lightness | medium-light (77%) |
| Chroma | moderately saturated (0.126) |
| Temperature | in between |
| Nearest name | Plum (#DDA0DD) |
| Black text | 9.51:1 |
| White text | 2.20:1 |
Values
| HEX | #D798E5 |
| RGB | rgb(215, 152, 229) |
| HSL | hsl(289, 60%, 75%) |
| OKLCH | oklch(76.7% 0.126 320.2) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #D798E5 | 2.20:1 | Fails | Lc -48.1 | Large or bold text, headings |
| Black text on #D798E5 | 9.51:1 | AAA | Lc 60.6 | Content text, not long reading |
| #D798E5 text on white | 2.20:1 | Fails | Lc 43.3 | Non-text elements, placeholder text |
| #D798E5 text on black | 9.51:1 | AAA | Lc -58.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 300.
-
Step 50
50
#FBF2FD
oklch(97.1% 0.017 320.1)
-
Step 100
100
#F5E2F9
oklch(93.5% 0.037 320.3)
-
Step 200
200
#EECBF6
oklch(88.5% 0.069 320)
-
Step 300
300 (this color)
#D798E5
oklch(76.7% 0.126 320.2)
-
Step 400
400
#D66FED
oklch(70.7% 0.202 320)
-
Step 500
500
#CA3AE7
oklch(63.2% 0.259 320.2)
-
Step 600
600
#B200D0
oklch(55.6% 0.267 320.1)
-
Step 700
700
#9700B0
oklch(49.2% 0.236 320.3)
-
Step 800
800
#7C0091
oklch(42.6% 0.204 320.3)
-
Step 900
900
#660E77
oklch(37.7% 0.168 320.1)
-
Step 950
950
#3C0D46
oklch(27.1% 0.107 319.9)
#D798E5 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #8FAAE8 | 0.108 |
| Deuteranopia (no green cones) | #9EB1E3 | 0.099 |
| Tritanopia (no blue cones) | #D8A1B4 | 0.081 |
| Achromatopsia (no color) | #AEAEAE | 0.127 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #D798E5
#D798E5
oklch(76.7% 0.126 320.2)
- #86C779
#86C779
oklch(76.7% 0.126 140.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #D798E5, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Plum #DDA0DD ΔE 0.028
- Baby Purple #CA9BF7 ΔE 0.032
- Lilac #CEA2FD ΔE 0.038
- Pastel Purple #CAA0FF ΔE 0.042
- Lavender Pink #DD85D7 ΔE 0.044
- Pale Violet #CEAEFA ΔE 0.054
- Liliac #C48EFD ΔE 0.058
- Pale Purple #B790D4 ΔE 0.060
Use #D798E5 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.