#AFA7E7
Closest named color: Pale Violet (#CEAEFA). oklch(75.8% 0.091 289.8), rgb(175, 167, 231).
Aa
Black text reads best on this color (9.50:1).
About this color
#AFA7E7 is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.091 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Pale Violet (#CEAEFA), ΔE 0.056 away. Black text reads best on it, at 9.50:1.
| Hue family | Purples |
| Lightness | medium-light (76%) |
| Chroma | moderately saturated (0.091) |
| Temperature | cool |
| Nearest name | Pale Violet (#CEAEFA) |
| Black text | 9.50:1 |
| White text | 2.20:1 |
Values
| HEX | #AFA7E7 |
| RGB | rgb(175, 167, 231) |
| HSL | hsl(248, 57%, 78%) |
| OKLCH | oklch(75.8% 0.091 289.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 #AFA7E7 | 2.20:1 | Fails | Lc -48.3 | Large or bold text, headings |
| Black text on #AFA7E7 | 9.50:1 | AAA | Lc 60.5 | Content text, not long reading |
| #AFA7E7 text on white | 2.20:1 | Fails | Lc 43.5 | Non-text elements, placeholder text |
| #AFA7E7 text on black | 9.50:1 | AAA | Lc -58.7 | 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
#F5F4FD
oklch(97% 0.012 291.3)
-
Step 100
100
#E9E7FB
oklch(93.5% 0.027 290.5)
-
Step 200
200
#D8D4F9
oklch(88.5% 0.051 290.3)
-
Step 300
300 (this color)
#AFA7E7
oklch(75.8% 0.091 289.8)
-
Step 400
400
#A08FF5
oklch(70.8% 0.146 289.8)
-
Step 500
500
#8B6FF0
oklch(63.1% 0.186 290)
-
Step 600
600
#7653DF
oklch(55.6% 0.203 289.7)
-
Step 700
700
#6442C2
oklch(49.1% 0.189 289.8)
-
Step 800
800
#51389D
oklch(42.8% 0.156 289.5)
-
Step 900
900
#43327C
oklch(37.8% 0.12 290)
-
Step 950
950
#271E49
oklch(27.1% 0.077 289.9)
#AFA7E7 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) | #97B0EA | 0.037 |
| Deuteranopia (no green cones) | #97ADE5 | 0.035 |
| Tritanopia (no blue cones) | #A3B2BE | 0.077 |
| Achromatopsia (no color) | #AEAEAE | 0.092 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFA7E7
#AFA7E7
oklch(75.8% 0.091 289.8)
- #B4B670
#B4B670
oklch(75.8% 0.092 109.8)
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 #AFA7E7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pale Violet #CEAEFA ΔE 0.056
- Baby Purple #CA9BF7 ΔE 0.057
- Pale Purple #B790D4 ΔE 0.058
- Pastel Purple #CAA0FF ΔE 0.058
- Lilac #CEA2FD ΔE 0.059
- Carolina Blue #8AB8FE ΔE 0.061
- Pastel Blue #A2BFFE ΔE 0.062
- Plum #DDA0DD ΔE 0.069
Use #AFA7E7 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.