#AF398A
Closest named color: Medium Violet Red (#C71585). oklch(54.1% 0.176 342.6), rgb(175, 57, 138).
Aa
White text reads best on this color (5.56:1).
About this color
#AF398A is a medium-dark, vivid pink. In OKLCH its lightness is 54%, its chroma 0.176 and its hue 343°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.053 away. White text reads best on it, at 5.56:1.
| Hue family | Pinks |
| Lightness | medium-dark (54%) |
| Chroma | vivid (0.176) |
| Temperature | warm |
| Nearest name | Medium Violet Red (#C71585) |
| Black text | 3.77:1 |
| White text | 5.56:1 |
Values
| HEX | #AF398A |
| RGB | rgb(175, 57, 138) |
| HSL | hsl(319, 51%, 45%) |
| OKLCH | oklch(54.1% 0.176 342.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 #AF398A | 5.56:1 | AA | Lc -82.2 | Fine for body text |
| Black text on #AF398A | 3.77:1 | AA large text | Lc 27.2 | Dividers and decoration only |
| #AF398A text on white | 5.56:1 | AA | Lc 76.9 | Fine for body text |
| #AF398A text on black | 3.77:1 | AA large text | Lc -24.9 | 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
#FBF3F7
oklch(97.1% 0.01 345.4)
-
Step 100
100
#F6E4EE
oklch(93.6% 0.024 342.9)
-
Step 200
200
#EFCEE1
oklch(88.5% 0.044 342.5)
-
Step 300
300
#E5ADCE
oklch(80.9% 0.078 342.8)
-
Step 400
400
#D67FB6
oklch(70.6% 0.127 342.3)
-
Step 500
500
#C95CA4
oklch(63.2% 0.162 342.4)
-
Step 600
600 (this color)
#AF398A
oklch(54.1% 0.176 342.6)
-
Step 700
700
#9B2F79
oklch(49.2% 0.164 342.8)
-
Step 800
800
#7E2863
oklch(42.7% 0.137 342.5)
-
Step 900
900
#662650
oklch(37.7% 0.106 343.2)
-
Step 950
950
#3C172F
oklch(27% 0.068 342.9)
#AF398A 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) | #435C8C | 0.192 |
| Deuteranopia (no green cones) | #676F87 | 0.168 |
| Tritanopia (no blue cones) | #BA3A5C | 0.078 |
| Achromatopsia (no color) | #686868 | 0.177 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF398A
#AF398A
oklch(54.1% 0.176 342.6)
- #00845A
#00845A
oklch(54.2% 0.118 162.3)
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 #AF398A, closest first.
No curated palette has a color within ΔE 0.04 of #AF398A.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Violet Red #C71585 ΔE 0.053
- Warm Purple #952E8F ΔE 0.061
- Light Plum #9D5783 ΔE 0.069
- Light Eggplant #894585 ΔE 0.074
- Purply #983FB2 ΔE 0.079
- Light Burgundy #A8415B ΔE 0.080
- Dark Pink #CB416B ΔE 0.083
- Red Violet #9E0168 ΔE 0.084
Use #AF398A 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.