#AF3A81

Closest named color: Medium Violet Red (#C71585). oklch(53.8% 0.169 346.9), rgb(175, 58, 129).

Aa

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

About this color

#AF3A81 is a medium-dark, vivid red. In OKLCH its lightness is 54%, its chroma 0.169 and its hue 347°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.056 away. White text reads best on it, at 5.60:1.

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

Values

HEX#AF3A81
RGBrgb(175, 58, 129)
HSLhsl(324, 50%, 46%)
OKLCHoklch(53.8% 0.169 346.9)

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 #AF3A81 5.60:1 AA Lc -82.5 Fine for body text
Black text on #AF3A81 3.74:1 AA large text Lc 26.9 Dividers and decoration only
#AF3A81 text on white 5.60:1 AA Lc 77.1 Fine for body text
#AF3A81 text on black 3.74:1 AA large text Lc -24.6 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

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F6E4ED

    oklch(93.6% 0.023 345.8)

  3. Step 200

    200

    #EFCEDF

    oklch(88.4% 0.043 345.6)

  4. Step 300

    300

    #E6ADCA

    oklch(80.9% 0.076 347)

  5. Step 400

    400

    #D780AF

    oklch(70.7% 0.121 347.1)

  6. Step 500

    500

    #CA5D9C

    oklch(63.1% 0.156 346.7)

  7. Step 600

    600 (this color)

    #AF3A81

    oklch(53.8% 0.169 346.9)

  8. Step 700

    700

    #9B3172

    oklch(49.1% 0.156 346.6)

  9. Step 800

    800

    #7E2A5D

    oklch(42.7% 0.13 346.6)

  10. Step 900

    900

    #66274C

    oklch(37.7% 0.102 346.8)

  11. Step 950

    950

    #3C182C

    oklch(27% 0.063 347.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF3A81 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)#485B830.186
Deuteranopia (no green cones)#6A6F7E0.165
Tritanopia (no blue cones)#BB37580.068
Achromatopsia (no color)#6868680.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF3A81

    #AF3A81

    oklch(53.8% 0.169 346.9)

  • #008260

    #008260

    oklch(53.8% 0.111 166.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF3A81

    #AF3A81

    oklch(53.8% 0.169 346.9)

  • #9447AE

    #9447AE

    oklch(53.8% 0.17 316.8)

  • #BC364A

    #BC364A

    oklch(53.8% 0.17 16.7)

Open the analogous palette in the generator

Split complementary

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

  • #AF3A81

    #AF3A81

    oklch(53.8% 0.169 346.9)

  • #398200

    #398200

    oklch(53.8% 0.163 136.9)

  • #007E80

    #007E80

    oklch(53.8% 0.092 196.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF3A81

    #AF3A81

    oklch(53.8% 0.169 346.9)

  • #767200

    #767200

    oklch(53.8% 0.116 107.3)

  • #00799C

    #00799C

    oklch(53.7% 0.104 226.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF3A81

    #AF3A81

    oklch(53.8% 0.169 346.9)

  • #926400

    #926400

    oklch(53.8% 0.112 77.3)

  • #008260

    #008260

    oklch(53.8% 0.111 166.7)

  • #1E6BCD

    #1E6BCD

    oklch(53.8% 0.169 256.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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