#AF8EED
Closest named color: Liliac (#C48EFD). oklch(71.5% 0.138 298.9), rgb(175, 142, 237).
Aa
Black text reads best on this color (7.91:1).
About this color
#AF8EED is a medium-light, moderately saturated purple. In OKLCH its lightness is 71%, its chroma 0.138 and its hue 299°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.041 away. Black text reads best on it, at 7.91:1.
| Hue family | Purples |
| Lightness | medium-light (71%) |
| Chroma | moderately saturated (0.138) |
| Temperature | in between |
| Nearest name | Liliac (#C48EFD) |
| Black text | 7.91:1 |
| White text | 2.65:1 |
Values
| HEX | #AF8EED |
| RGB | rgb(175, 142, 237) |
| HSL | hsl(261, 73%, 74%) |
| OKLCH | oklch(71.5% 0.138 298.9) |
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 #AF8EED | 2.65:1 | Fails | Lc -56.7 | Large or bold text, headings |
| Black text on #AF8EED | 7.91:1 | AAA | Lc 52.5 | Large or bold text, headings |
| #AF8EED text on white | 2.65:1 | Fails | Lc 51.5 | Large or bold text, headings |
| #AF8EED text on black | 7.91:1 | AAA | Lc -50.4 | 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
#F6F4FC
oklch(97.1% 0.011 297.6)
-
Step 100
100
#ECE7F9
oklch(93.7% 0.025 298.6)
-
Step 200
200
#DDD3F5
oklch(88.5% 0.047 298.9)
-
Step 300
300
#C8B5F1
oklch(81% 0.086 299)
-
Step 400
400 (this color)
#AF8EED
oklch(71.5% 0.138 298.9)
-
Step 500
500
#996CE4
oklch(63.1% 0.176 298.5)
-
Step 600
600
#8550D2
oklch(55.7% 0.192 298.8)
-
Step 700
700
#713FB6
oklch(49.1% 0.18 298.9)
-
Step 800
800
#5C3593
oklch(42.7% 0.148 299.1)
-
Step 900
900
#4B3075
oklch(37.8% 0.114 298.9)
-
Step 950
950
#2C1D45
oklch(27.1% 0.073 298.8)
#AF8EED 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) | #759FF1 | 0.084 |
| Deuteranopia (no green cones) | #7B9EEB | 0.078 |
| Tritanopia (no blue cones) | #A39EB2 | 0.109 |
| Achromatopsia (no color) | #9F9F9F | 0.139 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF8EED
#AF8EED
oklch(71.5% 0.138 298.9)
- #9AAF3E
#9AAF3E
oklch(71.6% 0.139 119.1)
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 #AF8EED, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Liliac #C48EFD ΔE 0.041
- Pale Purple #B790D4 ΔE 0.041
- Perrywinkle #8F8CE7 ΔE 0.049
- Periwinkle Blue #8F99FB ΔE 0.052
- Baby Purple #CA9BF7 ΔE 0.056
- Lavender Blue #8B88F8 ΔE 0.060
- Light Purple #BF77F6 ΔE 0.060
- Pastel Purple #CAA0FF ΔE 0.066
Use #AF8EED 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.