#AF5BA7
Closest named color: Soft Purple (#A66FB5). oklch(59.7% 0.146 330.8), rgb(175, 91, 167).
Aa
Black text reads best on this color (4.87:1).
About this color
#AF5BA7 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.146 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.047 away. Black text reads best on it, at 4.87:1.
| Hue family | Purples |
| Lightness | medium-dark (60%) |
| Chroma | vivid (0.146) |
| Temperature | in between |
| Nearest name | Soft Purple (#A66FB5) |
| Black text | 4.87:1 |
| White text | 4.30:1 |
Values
| HEX | #AF5BA7 |
| RGB | rgb(175, 91, 167) |
| HSL | hsl(306, 34%, 52%) |
| OKLCH | oklch(59.7% 0.146 330.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 #AF5BA7 | 4.30:1 | AA large text | Lc -74.9 | Content text, not long reading |
| Black text on #AF5BA7 | 4.87:1 | AA | Lc 34.7 | Non-text elements, placeholder text |
| #AF5BA7 text on white | 4.30:1 | AA large text | Lc 69.4 | Content text, not long reading |
| #AF5BA7 text on black | 4.87:1 | AA | Lc -32.2 | Non-text elements, placeholder text |
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 500.
-
Step 50
50
#F9F3F8
oklch(97% 0.009 330.9)
-
Step 100
100
#F2E5F0
oklch(93.5% 0.02 330.7)
-
Step 200
200
#E9D0E5
oklch(88.4% 0.039 331.2)
-
Step 300
300
#DCB0D6
oklch(80.8% 0.072 330.8)
-
Step 400
400
#C986C1
oklch(70.7% 0.113 331)
-
Step 500
500 (this color)
#AF5BA7
oklch(59.7% 0.146 330.8)
-
Step 600
600
#A54A9D
oklch(55.5% 0.158 330.9)
-
Step 700
700
#8D3B86
oklch(49.1% 0.146 330.9)
-
Step 800
800
#73316D
oklch(42.7% 0.122 331.1)
-
Step 900
900
#5D2C59
oklch(37.7% 0.096 330.4)
-
Step 950
950
#371A34
oklch(27% 0.061 331)
#AF5BA7 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) | #5772AA | 0.145 |
| Deuteranopia (no green cones) | #6F7EA5 | 0.129 |
| Tritanopia (no blue cones) | #B56179 | 0.078 |
| Achromatopsia (no color) | #7A7A7A | 0.147 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF5BA7
#AF5BA7
oklch(59.7% 0.146 330.8)
- #26974F
#26974F
oklch(59.8% 0.146 150.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 #AF5BA7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Soft Purple #A66FB5 ΔE 0.047
- Dark Lilac #9C6DA5 ΔE 0.052
- Amethyst #9B5FC0 ΔE 0.052
- Deep Lilac #966EBD ΔE 0.062
- Light Plum #9D5783 ΔE 0.064
- Pinky Purple #C94CBE ΔE 0.065
- Deep Lavender #8D5EB7 ΔE 0.065
- Medium Orchid #BA55D3 ΔE 0.072
Use #AF5BA7 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.