#D798E7
Closest named color: Baby Purple (#CA9BF7). oklch(76.8% 0.129 319.3), rgb(215, 152, 231).
Aa
Black text reads best on this color (9.53:1).
About this color
#D798E7 is a medium-light, moderately saturated purple. In OKLCH its lightness is 77%, its chroma 0.129 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.030 away. Black text reads best on it, at 9.53:1.
| Hue family | Purples |
| Lightness | medium-light (77%) |
| Chroma | moderately saturated (0.129) |
| Temperature | in between |
| Nearest name | Baby Purple (#CA9BF7) |
| Black text | 9.53:1 |
| White text | 2.20:1 |
Values
| HEX | #D798E7 |
| RGB | rgb(215, 152, 231) |
| HSL | hsl(288, 62%, 75%) |
| OKLCH | oklch(76.8% 0.129 319.3) |
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 #D798E7 | 2.20:1 | Fails | Lc -48.0 | Large or bold text, headings |
| Black text on #D798E7 | 9.53:1 | AAA | Lc 60.7 | Content text, not long reading |
| #D798E7 text on white | 2.20:1 | Fails | Lc 43.2 | Non-text elements, placeholder text |
| #D798E7 text on black | 9.53:1 | AAA | Lc -59.0 | 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
#F5E2FA
oklch(93.5% 0.038 319.2)
-
Step 200
200
#EECBF7
oklch(88.5% 0.07 319.3)
-
Step 300
300 (this color)
#D798E7
oklch(76.8% 0.129 319.3)
-
Step 400
400
#D66EF0
oklch(70.7% 0.206 319.3)
-
Step 500
500
#C938EA
oklch(63.1% 0.263 319.3)
-
Step 600
600
#B100D2
oklch(55.6% 0.268 319.3)
-
Step 700
700
#9600B2
oklch(49.2% 0.237 319.4)
-
Step 800
800
#7B0093
oklch(42.6% 0.206 319.1)
-
Step 900
900
#660B79
oklch(37.7% 0.172 319.3)
-
Step 950
950
#3C0C47
oklch(27% 0.109 319.3)
#D798E7 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) | #8EAAEA | 0.109 |
| Deuteranopia (no green cones) | #9DB1E5 | 0.100 |
| Tritanopia (no blue cones) | #D8A1B5 | 0.083 |
| Achromatopsia (no color) | #AFAFAF | 0.129 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #D798E7
#D798E7
oklch(76.8% 0.129 319.3)
- #87C777
#87C777
oklch(76.7% 0.128 139.5)
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 #D798E7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Baby Purple #CA9BF7 ΔE 0.030
- Plum #DDA0DD ΔE 0.030
- Lilac #CEA2FD ΔE 0.036
- Pastel Purple #CAA0FF ΔE 0.039
- Lavender Pink #DD85D7 ΔE 0.044
- Pale Violet #CEAEFA ΔE 0.054
- Liliac #C48EFD ΔE 0.056
- Pale Purple #B790D4 ΔE 0.061
Use #D798E7 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.