#AF2F9F
Closest named color: Purply (#983FB2). oklch(54.2% 0.203 333.6), rgb(175, 47, 159).
Aa
White text reads best on this color (5.62:1).
About this color
#AF2F9F is a medium-dark, vivid purple. In OKLCH its lightness is 54%, its chroma 0.203 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.056 away. White text reads best on it, at 5.62:1.
| Hue family | Purples |
| Lightness | medium-dark (54%) |
| Chroma | vivid (0.203) |
| Temperature | in between |
| Nearest name | Purply (#983FB2) |
| Black text | 3.73:1 |
| White text | 5.62:1 |
Values
| HEX | #AF2F9F |
| RGB | rgb(175, 47, 159) |
| HSL | hsl(308, 58%, 44%) |
| OKLCH | oklch(54.2% 0.203 333.6) |
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 #AF2F9F | 5.62:1 | AA | Lc -82.3 | Fine for body text |
| Black text on #AF2F9F | 3.73:1 | AA large text | Lc 27.1 | Dividers and decoration only |
| #AF2F9F text on white | 5.62:1 | AA | Lc 77.0 | Fine for body text |
| #AF2F9F text on black | 3.73:1 | AA large text | Lc -24.8 | Dividers and decoration only |
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 600.
-
Step 50
50
#FBF3F9
oklch(97.2% 0.012 334.1)
-
Step 100
100
#F5E4F1
oklch(93.6% 0.025 333.7)
-
Step 200
200
#EFCDE7
oklch(88.5% 0.051 334.2)
-
Step 300
300
#E5ABD9
oklch(80.9% 0.09 333.9)
-
Step 400
400
#D67BC6
oklch(70.6% 0.146 333.8)
-
Step 500
500
#C955B8
oklch(63.1% 0.187 333.6)
-
Step 600
600 (this color)
#AF2F9F
oklch(54.2% 0.203 333.6)
-
Step 700
700
#9A258C
oklch(49% 0.188 333.5)
-
Step 800
800
#7D2172
oklch(42.6% 0.157 333.3)
-
Step 900
900
#65225C
oklch(37.6% 0.122 333.4)
-
Step 950
950
#3C1536
oklch(27% 0.078 333.8)
#AF2F9F 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) | #2B5CA2 | 0.220 |
| Deuteranopia (no green cones) | #5A6E9C | 0.188 |
| Tritanopia (no blue cones) | #B73B64 | 0.104 |
| Achromatopsia (no color) | #676767 | 0.205 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF2F9F
#AF2F9F
oklch(54.2% 0.203 333.6)
- #008547
#008547
oklch(54.1% 0.138 153.6)
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 #AF2F9F, closest first.
No curated palette has a color within ΔE 0.04 of #AF2F9F.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Purply #983FB2 ΔE 0.056
- Warm Purple #952E8F ΔE 0.057
- Medium Violet Red #C71585 ΔE 0.063
- Purpley Pink #C83CB9 ΔE 0.065
- Pinky Purple #C94CBE ΔE 0.083
- Dark Orchid #9932CC ΔE 0.086
- Light Eggplant #894585 ΔE 0.089
- Dark Magenta #8B008B ΔE 0.097
Use #AF2F9F 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.