#AF87DC
Closest named color: Pale Purple (#B790D4). oklch(69.4% 0.128 304.9), rgb(175, 135, 220).
Aa
Black text reads best on this color (7.32:1).
About this color
#AF87DC is a medium-light, moderately saturated purple. In OKLCH its lightness is 69%, its chroma 0.128 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Purple (#B790D4), ΔE 0.032 away. Black text reads best on it, at 7.32:1.
| Hue family | Purples |
| Lightness | medium-light (69%) |
| Chroma | moderately saturated (0.128) |
| Temperature | in between |
| Nearest name | Pale Purple (#B790D4) |
| Black text | 7.32:1 |
| White text | 2.86:1 |
Values
| HEX | #AF87DC |
| RGB | rgb(175, 135, 220) |
| HSL | hsl(268, 55%, 70%) |
| OKLCH | oklch(69.4% 0.128 304.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 #AF87DC | 2.86:1 | Fails | Lc -60.1 | Content text, not long reading |
| Black text on #AF87DC | 7.32:1 | AAA | Lc 49.3 | Large or bold text, headings |
| #AF87DC text on white | 2.86:1 | Fails | Lc 54.8 | Large or bold text, headings |
| #AF87DC text on black | 7.32:1 | AAA | Lc -47.1 | 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
#EDE6F7
oklch(93.5% 0.024 304.5)
-
Step 200
200
#E0D2F1
oklch(88.5% 0.045 305.9)
-
Step 300
300
#CCB4EB
oklch(80.9% 0.08 304.5)
-
Step 400
400 (this color)
#AF87DC
oklch(69.4% 0.128 304.9)
-
Step 500
500
#A16BD8
oklch(63.1% 0.165 305)
-
Step 600
600
#8C50C5
oklch(55.6% 0.178 304.9)
-
Step 700
700
#7740AA
oklch(49.1% 0.165 304.9)
-
Step 800
800
#61368A
oklch(42.8% 0.137 304.9)
-
Step 900
900
#4F306E
oklch(37.8% 0.106 305)
-
Step 950
950
#2E1D41
oklch(27.1% 0.067 304.1)
#AF87DC 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) | #7497DF | 0.087 |
| Deuteranopia (no green cones) | #7C99DA | 0.082 |
| Tritanopia (no blue cones) | #A894A7 | 0.096 |
| Achromatopsia (no color) | #989898 | 0.129 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF87DC
#AF87DC
oklch(69.4% 0.128 304.9)
- #8BAA4B
#8BAA4B
oklch(69.4% 0.128 124.7)
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 #AF87DC, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pale Purple #B790D4 ΔE 0.032
- Wisteria #A87DC2 ΔE 0.043
- Perrywinkle #8F8CE7 ΔE 0.050
- Liliac #C48EFD ΔE 0.060
- Light Purple #BF77F6 ΔE 0.063
- Lavender Blue #8B88F8 ΔE 0.067
- Periwinkle Blue #8F99FB ΔE 0.069
- Light Urple #B36FF6 ΔE 0.073
Use #AF87DC 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.