#AF2B81

Closest named color: Medium Violet Red (#C71585). oklch(52.4% 0.187 345.6), rgb(175, 43, 129).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (52%)
Chromavivid (0.187)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.48:1
White text6.02:1

Values

HEX#AF2B81
RGBrgb(175, 43, 129)
HSLhsl(321, 61%, 43%)
OKLCHoklch(52.4% 0.187 345.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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #AF2B81 6.02:1 AA Lc -84.1 Fine for body text
Black text on #AF2B81 3.48:1 AA large text Lc 25.2 Dividers and decoration only
#AF2B81 text on white 6.02:1 AA Lc 78.9 Fine for body text
#AF2B81 text on black 3.48:1 AA large text Lc -22.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.

  1. Step 50

    50

    #FCF3F7

    oklch(97.2% 0.011 348.4)

  2. Step 100

    100

    #F7E4ED

    oklch(93.7% 0.024 347.2)

  3. Step 200

    200

    #F1CDE0

    oklch(88.4% 0.047 345)

  4. Step 300

    300

    #E9ABCC

    oklch(80.9% 0.084 345.9)

  5. Step 400

    400

    #DB7CB3

    oklch(70.7% 0.135 345.4)

  6. Step 500

    500

    #CF56A0

    oklch(63.1% 0.173 345.5)

  7. Step 600

    600 (this color)

    #AF2B81

    oklch(52.4% 0.187 345.6)

  8. Step 700

    700

    #A02776

    oklch(49.1% 0.175 345.5)

  9. Step 800

    800

    #822360

    oklch(42.7% 0.145 345.5)

  10. Step 900

    900

    #69234E

    oklch(37.7% 0.112 346)

  11. Step 950

    950

    #3E162E

    oklch(27.1% 0.071 345.8)

Export this scale for Tailwind in the Tailwind colors tool

#AF2B81 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)#3C55830.209
Deuteranopia (no green cones)#646B7E0.182
Tritanopia (no blue cones)#BB28530.077
Achromatopsia (no color)#6363630.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF2B81

    #AF2B81

    oklch(52.4% 0.187 345.6)

  • #007D5B

    #007D5B

    oklch(52.3% 0.109 165.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF2B81

    #AF2B81

    oklch(52.4% 0.187 345.6)

  • #923CB1

    #923CB1

    oklch(52.4% 0.188 315.8)

  • #BD2344

    #BD2344

    oklch(52.3% 0.187 15.6)

Open the analogous palette in the generator

Split complementary

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

  • #AF2B81

    #AF2B81

    oklch(52.4% 0.187 345.6)

  • #3C7C00

    #3C7C00

    oklch(52.3% 0.154 135.6)

  • #007A7A

    #007A7A

    oklch(52.5% 0.09 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF2B81

    #AF2B81

    oklch(52.4% 0.187 345.6)

  • #736D00

    #736D00

    oklch(52.3% 0.112 105.9)

  • #007596

    #007596

    oklch(52.4% 0.1 226.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF2B81

    #AF2B81

    oklch(52.4% 0.187 345.6)

  • #8E5F00

    #8E5F00

    oklch(52.3% 0.11 75.3)

  • #007D5B

    #007D5B

    oklch(52.3% 0.109 165.9)

  • #0067CC

    #0067CC

    oklch(52.4% 0.176 255.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #AF2B81.

Similar named colors

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

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