#AF317B
Closest named color: Medium Violet Red (#C71585). oklch(52.7% 0.177 348.8), rgb(175, 49, 123).
Aa
White text reads best on this color (5.91:1).
About this color
#AF317B is a medium-dark, vivid red. In OKLCH its lightness is 53%, its chroma 0.177 and its hue 349°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.052 away. White text reads best on it, at 5.91:1.
| Hue family | Reds |
| Lightness | medium-dark (53%) |
| Chroma | vivid (0.177) |
| Temperature | warm |
| Nearest name | Medium Violet Red (#C71585) |
| Black text | 3.54:1 |
| White text | 5.91:1 |
Values
| HEX | #AF317B |
| RGB | rgb(175, 49, 123) |
| HSL | hsl(325, 56%, 44%) |
| OKLCH | oklch(52.7% 0.177 348.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 #AF317B | 5.91:1 | AA | Lc -83.8 | Fine for body text |
| Black text on #AF317B | 3.54:1 | AA large text | Lc 25.6 | Dividers and decoration only |
| #AF317B text on white | 5.91:1 | AA | Lc 78.5 | Fine for body text |
| #AF317B text on black | 3.54:1 | AA large text | Lc -23.3 | 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
#FBF3F6
oklch(97.1% 0.009 352.4)
-
Step 100
100
#F7E4EC
oklch(93.6% 0.023 350.1)
-
Step 200
200
#F1CEDE
oklch(88.6% 0.044 348.7)
-
Step 300
300
#E9ACC9
oklch(81% 0.08 348.9)
-
Step 400
400
#DB7EAD
oklch(70.8% 0.128 349.2)
-
Step 500
500
#CE5A99
oklch(63.2% 0.162 349)
-
Step 600
600 (this color)
#AF317B
oklch(52.7% 0.177 348.8)
-
Step 700
700
#9F2C6F
oklch(49.1% 0.164 349.1)
-
Step 800
800
#81265B
oklch(42.6% 0.137 348.6)
-
Step 900
900
#68254B
oklch(37.7% 0.106 348.3)
-
Step 950
950
#3D172C
oklch(27% 0.066 348.1)
#AF317B 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) | #44567D | 0.196 |
| Deuteranopia (no green cones) | #686C78 | 0.174 |
| Tritanopia (no blue cones) | #BC2B52 | 0.068 |
| Achromatopsia (no color) | #646464 | 0.179 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF317B
#AF317B
oklch(52.7% 0.177 348.8)
- #007E60
#007E60
oklch(52.7% 0.106 168.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 #AF317B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Violet Red #C71585 ΔE 0.052
- Light Burgundy #A8415B ΔE 0.065
- Warm Purple #952E8F ΔE 0.066
- Red Violet #9E0168 ΔE 0.067
- Deep Magenta #A0025C ΔE 0.070
- Violet Red #A50055 ΔE 0.071
- Dark Fuchsia #9D0759 ΔE 0.075
- Light Plum #9D5783 ΔE 0.075
Use #AF317B 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.