#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 familyReds
Lightnessmedium-dark (53%)
Chromavivid (0.180)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.52:1
White text5.96:1

Values

HEX#AF2F7C
RGBrgb(175, 47, 124)
HSLhsl(324, 58%, 44%)
OKLCHoklch(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.

PairWCAG 2ResultAPCAAPCA 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.

  1. Step 50

    50

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F7E4EC

    oklch(93.6% 0.023 350.1)

  3. Step 200

    200

    #F1CEDE

    oklch(88.6% 0.044 348.7)

  4. Step 300

    300

    #E9ACCA

    oklch(81% 0.081 348)

  5. Step 400

    400

    #DB7DAE

    oklch(70.6% 0.13 348.4)

  6. Step 500

    500

    #CE599B

    oklch(63.1% 0.165 347.9)

  7. Step 600

    600 (this color)

    #AF2F7C

    oklch(52.5% 0.18 348.2)

  8. Step 700

    700

    #9F2B71

    oklch(49.1% 0.167 348)

  9. Step 800

    800

    #82255C

    oklch(42.7% 0.139 348.2)

  10. Step 900

    900

    #69244B

    oklch(37.7% 0.109 348.6)

  11. Step 950

    950

    #3E162C

    oklch(27% 0.069 348.6)

Export this scale for Tailwind in the Tailwind colors tool

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

VisionSeen asShift (ΔE)
Protanopia (no red cones)#42557E0.200
Deuteranopia (no green cones)#676C790.177
Tritanopia (no blue cones)#BC29510.071
Achromatopsia (no color)#6363630.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)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF2F7C

    #AF2F7C

    oklch(52.5% 0.18 348.2)

  • #943EAC

    #943EAC

    oklch(52.6% 0.181 318.2)

  • #BC2B41

    #BC2B41

    oklch(52.7% 0.18 18.1)

Open the analogous palette in the generator

Split complementary

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

  • #AF2F7C

    #AF2F7C

    oklch(52.5% 0.18 348.2)

  • #307F00

    #307F00

    oklch(52.6% 0.164 138.3)

  • #007A7D

    #007A7D

    oklch(52.6% 0.089 197.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF2F7C

    #AF2F7C

    oklch(52.5% 0.18 348.2)

  • #716F00

    #716F00

    oklch(52.6% 0.114 108.5)

  • #007599

    #007599

    oklch(52.5% 0.103 228.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF2F7C

    #AF2F7C

    oklch(52.5% 0.18 348.2)

  • #8C6100

    #8C6100

    oklch(52.5% 0.109 78.4)

  • #007D5F

    #007D5F

    oklch(52.4% 0.105 168.6)

  • #1665CF

    #1665CF

    oklch(52.5% 0.18 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 #AF2F7C, closest first.

Similar named colors

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

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.