#D798EC
Closest named color: Baby Purple (#CA9BF7). oklch(77% 0.134 317.4), rgb(215, 152, 236).
Aa
Black text reads best on this color (9.59:1).
About this color
#D798EC is a medium-light, moderately saturated purple. In OKLCH its lightness is 77%, its chroma 0.134 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.025 away. Black text reads best on it, at 9.59:1.
| Hue family | Purples |
| Lightness | medium-light (77%) |
| Chroma | moderately saturated (0.134) |
| Temperature | in between |
| Nearest name | Baby Purple (#CA9BF7) |
| Black text | 9.59:1 |
| White text | 2.18:1 |
Values
| HEX | #D798EC |
| RGB | rgb(215, 152, 236) |
| HSL | hsl(285, 69%, 76%) |
| OKLCH | oklch(77% 0.134 317.4) |
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 #D798EC | 2.18:1 | Fails | Lc -47.7 | Large or bold text, headings |
| Black text on #D798EC | 9.59:1 | AAA | Lc 61.0 | Content text, not long reading |
| #D798EC text on white | 2.18:1 | Fails | Lc 42.9 | Non-text elements, placeholder text |
| #D798EC text on black | 9.59:1 | AAA | Lc -59.2 | 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
#FBF2FE
oklch(97.2% 0.018 317.7)
-
Step 100
100
#F5E2FB
oklch(93.5% 0.039 318.1)
-
Step 200
200
#EECAFA
oklch(88.5% 0.075 317.6)
-
Step 300
300 (this color)
#D798EC
oklch(77% 0.134 317.4)
-
Step 400
400
#D56CF6
oklch(70.7% 0.215 317.4)
-
Step 500
500
#C832F2
oklch(63% 0.274 317.3)
-
Step 600
600
#AF00D7
oklch(55.7% 0.271 317.4)
-
Step 700
700
#9400B6
oklch(49.2% 0.239 317.5)
-
Step 800
800
#7A0096
oklch(42.7% 0.207 317.7)
-
Step 900
900
#65057D
oklch(37.6% 0.179 317.4)
-
Step 950
950
#3C0B49
oklch(27.1% 0.113 318)
#D798EC 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) | #8CABEF | 0.111 |
| Deuteranopia (no green cones) | #9BB1E9 | 0.102 |
| Tritanopia (no blue cones) | #D7A2B7 | 0.088 |
| Achromatopsia (no color) | #AFAFAF | 0.135 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #D798EC
#D798EC
oklch(77% 0.134 317.4)
- #89C871
#89C871
oklch(76.9% 0.135 137.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 #D798EC, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Baby Purple #CA9BF7 ΔE 0.025
- Lilac #CEA2FD ΔE 0.032
- Pastel Purple #CAA0FF ΔE 0.034
- Plum #DDA0DD ΔE 0.035
- Lavender Pink #DD85D7 ΔE 0.047
- Liliac #C48EFD ΔE 0.051
- Pale Violet #CEAEFA ΔE 0.052
- Violet #EE82EE ΔE 0.059
Use #D798EC 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.