#D797E6
Closest named color: Baby Purple (#CA9BF7). oklch(76.5% 0.129 319.8), rgb(215, 151, 230).
Aa
Black text reads best on this color (9.45:1).
About this color
#D797E6 is a medium-light, moderately saturated purple. In OKLCH its lightness is 77%, its chroma 0.129 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.031 away. Black text reads best on it, at 9.45:1.
| Hue family | Purples |
| Lightness | medium-light (77%) |
| Chroma | moderately saturated (0.129) |
| Temperature | in between |
| Nearest name | Baby Purple (#CA9BF7) |
| Black text | 9.45:1 |
| White text | 2.22:1 |
Values
| HEX | #D797E6 |
| RGB | rgb(215, 151, 230) |
| HSL | hsl(289, 61%, 75%) |
| OKLCH | oklch(76.5% 0.129 319.8) |
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 #D797E6 | 2.22:1 | Fails | Lc -48.4 | Large or bold text, headings |
| Black text on #D797E6 | 9.45:1 | AAA | Lc 60.4 | Content text, not long reading |
| #D797E6 text on white | 2.22:1 | Fails | Lc 43.6 | Non-text elements, placeholder text |
| #D797E6 text on black | 9.45:1 | AAA | Lc -58.6 | 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
#EFCAF7
oklch(88.4% 0.072 320.3)
-
Step 300
300 (this color)
#D797E6
oklch(76.5% 0.129 319.8)
-
Step 400
400
#D76DEF
oklch(70.7% 0.207 319.9)
-
Step 500
500
#CA36E9
oklch(63% 0.264 319.9)
-
Step 600
600
#B200D1
oklch(55.7% 0.267 319.8)
-
Step 700
700
#9600B1
oklch(49.1% 0.236 319.7)
-
Step 800
800
#7C0092
oklch(42.7% 0.205 319.9)
-
Step 900
900
#660A78
oklch(37.6% 0.172 319.8)
-
Step 950
950
#3C0C46
oklch(27% 0.108 320)
#D797E6 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) | #8DAAE9 | 0.111 |
| Deuteranopia (no green cones) | #9DB0E3 | 0.101 |
| Tritanopia (no blue cones) | #D8A0B4 | 0.083 |
| Achromatopsia (no color) | #AEAEAE | 0.130 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #D797E6
#D797E6
oklch(76.5% 0.129 319.8)
- #85C776
#85C776
oklch(76.6% 0.13 139.9)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes and gradients that use #D797E6
These curated palettes and gradients contain exactly #D797E6. Open one to see the full color scheme around it.
Palettes
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Baby Purple #CA9BF7 ΔE 0.031
- Plum #DDA0DD ΔE 0.031
- Lilac #CEA2FD ΔE 0.038
- Pastel Purple #CAA0FF ΔE 0.041
- Lavender Pink #DD85D7 ΔE 0.042
- Liliac #C48EFD ΔE 0.055
- Pale Violet #CEAEFA ΔE 0.056
- Pale Purple #B790D4 ΔE 0.060
Use #D797E6 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.