#AFA8EF
Closest named color: Pale Violet (#CEAEFA). oklch(76.4% 0.101 288.3), rgb(175, 168, 239).
Aa
Black text reads best on this color (9.67:1).
About this color
#AFA8EF is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.101 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Pale Violet (#CEAEFA), ΔE 0.051 away. Black text reads best on it, at 9.67:1.
| Hue family | Purples |
| Lightness | medium-light (76%) |
| Chroma | moderately saturated (0.101) |
| Temperature | cool |
| Nearest name | Pale Violet (#CEAEFA) |
| Black text | 9.67:1 |
| White text | 2.17:1 |
Values
| HEX | #AFA8EF |
| RGB | rgb(175, 168, 239) |
| HSL | hsl(246, 69%, 80%) |
| OKLCH | oklch(76.4% 0.101 288.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 #AFA8EF | 2.17:1 | Fails | Lc -47.4 | Large or bold text, headings |
| Black text on #AFA8EF | 9.67:1 | AAA | Lc 61.3 | Content text, not long reading |
| #AFA8EF text on white | 2.17:1 | Fails | Lc 42.7 | Non-text elements, placeholder text |
| #AFA8EF text on black | 9.67:1 | AAA | Lc -59.5 | 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
#F5F4FE
oklch(97.1% 0.013 290.8)
-
Step 100
100
#E8E7FD
oklch(93.5% 0.03 287.9)
-
Step 200
200
#D7D4FD
oklch(88.5% 0.056 288.5)
-
Step 300
300 (this color)
#AFA8EF
oklch(76.4% 0.101 288.3)
-
Step 400
400
#9E8DFE
oklch(70.7% 0.161 288.5)
-
Step 500
500
#886BFC
oklch(63% 0.207 288.2)
-
Step 600
600
#754DEB
oklch(55.6% 0.224 288.5)
-
Step 700
700
#623CCD
oklch(49% 0.21 288.1)
-
Step 800
800
#5033A5
oklch(42.6% 0.173 288.5)
-
Step 900
900
#412F83
oklch(37.6% 0.135 288)
-
Step 950
950
#261D4D
oklch(27.1% 0.085 288)
#AFA8EF 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) | #95B2F2 | 0.040 |
| Deuteranopia (no green cones) | #94AEED | 0.038 |
| Tritanopia (no blue cones) | #A0B4C1 | 0.086 |
| Achromatopsia (no color) | #B0B0B0 | 0.101 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFA8EF
#AFA8EF
oklch(76.4% 0.101 288.3)
- #B8B769
#B8B769
oklch(76.3% 0.101 107.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 with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AFA8EF, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pale Violet #CEAEFA ΔE 0.051
- Pastel Purple #CAA0FF ΔE 0.051
- Baby Purple #CA9BF7 ΔE 0.052
- Lilac #CEA2FD ΔE 0.053
- Carolina Blue #8AB8FE ΔE 0.057
- Pastel Blue #A2BFFE ΔE 0.058
- Pale Purple #B790D4 ΔE 0.063
- Periwinkle Blue #8F99FB ΔE 0.067
Use #AFA8EF 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.