#C798F2
Closest named color: Baby Purple (#CA9BF7). oklch(75.7% 0.134 307.5), rgb(199, 152, 242).
Aa
Black text reads best on this color (9.20:1).
About this color
#C798F2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.134 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.011 away. Black text reads best on it, at 9.20:1.
| Hue family | Purples |
| Lightness | medium-light (76%) |
| Chroma | moderately saturated (0.134) |
| Temperature | in between |
| Nearest name | Baby Purple (#CA9BF7) |
| Black text | 9.20:1 |
| White text | 2.28:1 |
Values
| HEX | #C798F2 |
| RGB | rgb(199, 152, 242) |
| HSL | hsl(271, 78%, 77%) |
| OKLCH | oklch(75.7% 0.134 307.5) |
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 #C798F2 | 2.28:1 | Fails | Lc -49.7 | Large or bold text, headings |
| Black text on #C798F2 | 9.20:1 | AAA | Lc 59.1 | Large or bold text, headings |
| #C798F2 text on white | 2.28:1 | Fails | Lc 44.9 | Non-text elements, placeholder text |
| #C798F2 text on black | 9.20:1 | AAA | Lc -57.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 400.
-
Step 50
50
#F7F4FB
oklch(97.1% 0.01 305.4)
-
Step 100
100
#EEE6F7
oklch(93.6% 0.024 307)
-
Step 200
200
#E1D2F2
oklch(88.6% 0.046 306.6)
-
Step 300
300
#CFB3EB
oklch(80.9% 0.083 307.3)
-
Step 400
400 (this color)
#C798F2
oklch(75.7% 0.134 307.5)
-
Step 500
500
#A668D9
oklch(63.2% 0.172 307.5)
-
Step 600
600
#914CC6
oklch(55.6% 0.187 307.5)
-
Step 700
700
#7B3CAB
oklch(49.1% 0.173 307.3)
-
Step 800
800
#64328B
oklch(42.6% 0.145 307.2)
-
Step 900
900
#522D6F
oklch(37.7% 0.113 307.7)
-
Step 950
950
#301B41
oklch(27% 0.072 307.8)
#C798F2 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) | #85AAF5 | 0.096 |
| Deuteranopia (no green cones) | #90ACEF | 0.088 |
| Tritanopia (no blue cones) | #C1A5BA | 0.098 |
| Achromatopsia (no color) | #ACACAC | 0.135 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #C798F2
#C798F2
oklch(75.7% 0.134 307.5)
- #98C05D
#98C05D
oklch(75.7% 0.135 127.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 #C798F2, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Baby Purple #CA9BF7 ΔE 0.011
- Pastel Purple #CAA0FF ΔE 0.025
- Lilac #CEA2FD ΔE 0.029
- Liliac #C48EFD ΔE 0.033
- Pale Purple #B790D4 ΔE 0.052
- Plum #DDA0DD ΔE 0.055
- Pale Violet #CEAEFA ΔE 0.055
- Lavender Pink #DD85D7 ΔE 0.059
Use #C798F2 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.