#AF3A7D

Closest named color: Medium Violet Red (#C71585). oklch(53.7% 0.167 348.8), rgb(175, 58, 125).

Aa

White text reads best on this color (5.63:1).

About this color

#AF3A7D is a medium-dark, vivid red. In OKLCH its lightness is 54%, its chroma 0.167 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.058 away. White text reads best on it, at 5.63:1.

Hue familyReds
Lightnessmedium-dark (54%)
Chromavivid (0.167)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.72:1
White text5.63:1

Values

HEX#AF3A7D
RGBrgb(175, 58, 125)
HSLhsl(326, 50%, 46%)
OKLCHoklch(53.7% 0.167 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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #AF3A7D 5.63:1 AA Lc -82.6 Fine for body text
Black text on #AF3A7D 3.72:1 AA large text Lc 26.8 Dividers and decoration only
#AF3A7D text on white 5.63:1 AA Lc 77.3 Fine for body text
#AF3A7D text on black 3.72:1 AA large text Lc -24.5 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.

  1. Step 50

    50

    #FBF3F6

    oklch(97.1% 0.009 352.4)

  2. Step 100

    100

    #F6E4EC

    oklch(93.6% 0.022 348.8)

  3. Step 200

    200

    #EFCFDD

    oklch(88.5% 0.04 349.7)

  4. Step 300

    300

    #E6ADC8

    oklch(80.8% 0.075 348.9)

  5. Step 400

    400

    #D880AD

    oklch(70.7% 0.121 348.7)

  6. Step 500

    500

    #CB5D98

    oklch(63.1% 0.154 349.1)

  7. Step 600

    600 (this color)

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  8. Step 700

    700

    #9C316F

    oklch(49.1% 0.156 348.6)

  9. Step 800

    800

    #7F2A5A

    oklch(42.7% 0.129 349)

  10. Step 900

    900

    #66274A

    oklch(37.6% 0.1 348.5)

  11. Step 950

    950

    #3C182B

    oklch(27% 0.063 349.2)

Export this scale for Tailwind in the Tailwind colors tool

#AF3A7D 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#4A5A7F0.183
Deuteranopia (no green cones)#6B6F7A0.164
Tritanopia (no blue cones)#BB35560.064
Achromatopsia (no color)#6767670.168

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #AF3A7D

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  • #008163

    #008163

    oklch(53.6% 0.107 169.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF3A7D

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  • #9546AA

    #9546AA

    oklch(53.6% 0.167 318.7)

  • #BB3846

    #BB3846

    oklch(53.8% 0.167 18.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #AF3A7D

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  • #2F8304

    #2F8304

    oklch(53.7% 0.167 138.9)

  • #007D81

    #007D81

    oklch(53.5% 0.091 198.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF3A7D

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  • #747200

    #747200

    oklch(53.6% 0.116 108.5)

  • #00789E

    #00789E

    oklch(53.6% 0.106 229.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF3A7D

    #AF3A7D

    oklch(53.7% 0.167 348.8)

  • #906400

    #906400

    oklch(53.6% 0.111 78.5)

  • #008163

    #008163

    oklch(53.6% 0.107 169.2)

  • #286ACC

    #286ACC

    oklch(53.7% 0.166 258.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AF3A7D, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #AF3A7D 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.