#AF397E

Closest named color: Medium Violet Red (#C71585). oklch(53.6% 0.169 348.2), rgb(175, 57, 126).

Aa

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

About this color

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

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

Values

HEX#AF397E
RGBrgb(175, 57, 126)
HSLhsl(325, 51%, 45%)
OKLCHoklch(53.6% 0.169 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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #AF397E 5.66:1 AA Lc -82.7 Fine for body text
Black text on #AF397E 3.70:1 AA large text Lc 26.7 Dividers and decoration only
#AF397E text on white 5.66:1 AA Lc 77.4 Fine for body text
#AF397E text on black 3.70:1 AA large text Lc -24.4 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

    #F6E4EC

    oklch(93.6% 0.022 348.8)

  3. Step 200

    200

    #F0CEDE

    oklch(88.5% 0.043 348)

  4. Step 300

    300

    #E7ADC9

    oklch(80.9% 0.077 348.4)

  5. Step 400

    400

    #D880AE

    oklch(70.7% 0.122 348)

  6. Step 500

    500

    #CB5D99

    oklch(63.1% 0.155 348.5)

  7. Step 600

    600 (this color)

    #AF397E

    oklch(53.6% 0.169 348.2)

  8. Step 700

    700

    #9C3070

    oklch(49% 0.157 348)

  9. Step 800

    800

    #7F2A5B

    oklch(42.8% 0.129 348.3)

  10. Step 900

    900

    #66274B

    oklch(37.6% 0.101 347.7)

  11. Step 950

    950

    #3C182C

    oklch(27% 0.063 347.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF397E 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)#485A800.186
Deuteranopia (no green cones)#6A6F7B0.167
Tritanopia (no blue cones)#BB35560.066
Achromatopsia (no color)#6767670.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF397E

    #AF397E

    oklch(53.6% 0.169 348.2)

  • #008162

    #008162

    oklch(53.6% 0.108 168.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF397E

    #AF397E

    oklch(53.6% 0.169 348.2)

  • #9546AB

    #9546AB

    oklch(53.6% 0.168 318.4)

  • #BB3646

    #BB3646

    oklch(53.6% 0.169 18.4)

Open the analogous palette in the generator

Split complementary

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

  • #AF397E

    #AF397E

    oklch(53.6% 0.169 348.2)

  • #328200

    #328200

    oklch(53.5% 0.166 138.2)

  • #007D81

    #007D81

    oklch(53.5% 0.091 198.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF397E

    #AF397E

    oklch(53.6% 0.169 348.2)

  • #747200

    #747200

    oklch(53.6% 0.116 108.5)

  • #00789D

    #00789D

    oklch(53.5% 0.105 228.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF397E

    #AF397E

    oklch(53.6% 0.169 348.2)

  • #906400

    #906400

    oklch(53.6% 0.111 78.5)

  • #008162

    #008162

    oklch(53.6% 0.108 168.5)

  • #246ACD

    #246ACD

    oklch(53.7% 0.168 258.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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