#AF2F7C
Closest named color: Medium Violet Red (#C71585). oklch(52.5% 0.18 348.2), rgb(175, 47, 124).
Aa
White text reads best on this color (5.96:1).
About this color
#AF2F7C is a medium-dark, vivid red. In OKLCH its lightness is 53%, its chroma 0.180 and its hue 348°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.051 away. White text reads best on it, at 5.96:1.
| Hue family | Reds |
| Lightness | medium-dark (53%) |
| Chroma | vivid (0.180) |
| Temperature | warm |
| Nearest name | Medium Violet Red (#C71585) |
| Black text | 3.52:1 |
| White text | 5.96:1 |
Values
| HEX | #AF2F7C |
| RGB | rgb(175, 47, 124) |
| HSL | hsl(324, 58%, 44%) |
| OKLCH | oklch(52.5% 0.18 348.2) |
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 #AF2F7C | 5.96:1 | AA | Lc -83.9 | Fine for body text |
| Black text on #AF2F7C | 3.52:1 | AA large text | Lc 25.4 | Dividers and decoration only |
| #AF2F7C text on white | 5.96:1 | AA | Lc 78.7 | Fine for body text |
| #AF2F7C text on black | 3.52:1 | AA large text | Lc -23.1 | 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
#F7E4EC
oklch(93.6% 0.023 350.1)
-
Step 200
200
#F1CEDE
oklch(88.6% 0.044 348.7)
-
Step 300
300
#E9ACCA
oklch(81% 0.081 348)
-
Step 400
400
#DB7DAE
oklch(70.6% 0.13 348.4)
-
Step 500
500
#CE599B
oklch(63.1% 0.165 347.9)
-
Step 600
600 (this color)
#AF2F7C
oklch(52.5% 0.18 348.2)
-
Step 700
700
#9F2B71
oklch(49.1% 0.167 348)
-
Step 800
800
#82255C
oklch(42.7% 0.139 348.2)
-
Step 900
900
#69244B
oklch(37.7% 0.109 348.6)
-
Step 950
950
#3E162C
oklch(27% 0.069 348.6)
#AF2F7C 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) | #42557E | 0.200 |
| Deuteranopia (no green cones) | #676C79 | 0.177 |
| Tritanopia (no blue cones) | #BC2951 | 0.071 |
| Achromatopsia (no color) | #636363 | 0.182 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF2F7C
#AF2F7C
oklch(52.5% 0.18 348.2)
- #007D5F
#007D5F
oklch(52.4% 0.105 168.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 #AF2F7C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Violet Red #C71585 ΔE 0.051
- Warm Purple #952E8F ΔE 0.064
- Red Violet #9E0168 ΔE 0.065
- Light Burgundy #A8415B ΔE 0.068
- Deep Magenta #A0025C ΔE 0.069
- Violet Red #A50055 ΔE 0.070
- Dark Fuchsia #9D0759 ΔE 0.074
- Light Eggplant #894585 ΔE 0.078
Use #AF2F7C 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.