#AF187B

Closest named color: Red Violet (#9E0168). oklch(50.9% 0.201 347.2), rgb(175, 24, 123).

Aa

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

About this color

#AF187B is a medium-dark, vivid red. In OKLCH its lightness is 51%, its chroma 0.201 and its hue 347°. Its hue sits on the warm side of the wheel. The nearest named color is Red Violet (#9E0168), ΔE 0.048 away. White text reads best on it, at 6.48:1.

Hue familyReds
Lightnessmedium-dark (51%)
Chromavivid (0.201)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text3.23:1
White text6.48:1

Values

HEX#AF187B
RGBrgb(175, 24, 123)
HSLhsl(321, 76%, 39%)
OKLCHoklch(50.9% 0.201 347.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 #AF187B 6.48:1 AA Lc -85.6 Fine for body text
Black text on #AF187B 3.23:1 AA large text Lc 23.6 Dividers and decoration only
#AF187B text on white 6.48:1 AA Lc 80.4 Fine for body text
#AF187B text on black 3.23:1 AA large text Lc -21.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 700.

  1. Step 50

    50

    #FDF2F7

    oklch(97.1% 0.013 347.9)

  2. Step 100

    100

    #F9E3ED

    oklch(93.6% 0.027 348.3)

  3. Step 200

    200

    #F5CBE0

    oklch(88.4% 0.054 346.7)

  4. Step 300

    300

    #F0A7CD

    oklch(80.9% 0.098 347)

  5. Step 400

    400

    #E474B3

    oklch(70.6% 0.156 347)

  6. Step 500

    500

    #D94AA0

    oklch(63.2% 0.198 347.2)

  7. Step 600

    600

    #C4208B

    oklch(55.6% 0.216 347)

  8. Step 700

    700 (this color)

    #AF187B

    oklch(50.9% 0.201 347.2)

  9. Step 800

    800

    #891360

    oklch(42.7% 0.166 347)

  10. Step 900

    900

    #6E1A4E

    oklch(37.6% 0.129 347.2)

  11. Step 950

    950

    #41122E

    oklch(27% 0.081 347.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF187B 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)#344E7D0.227
Deuteranopia (no green cones)#6167780.196
Tritanopia (no blue cones)#BC0D4A0.082
Achromatopsia (no color)#5E5E5E0.202

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF187B

    #AF187B

    oklch(50.9% 0.201 347.2)

  • #007859

    #007859

    oklch(50.8% 0.104 167.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF187B

    #AF187B

    oklch(50.9% 0.201 347.2)

  • #9230AF

    #9230AF

    oklch(51% 0.201 317.3)

  • #BD0739

    #BD0739

    oklch(50.8% 0.201 17.2)

Open the analogous palette in the generator

Split complementary

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

  • #AF187B

    #AF187B

    oklch(50.9% 0.201 347.2)

  • #337800

    #337800

    oklch(50.8% 0.154 137.1)

  • #007577

    #007577

    oklch(51% 0.087 196.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF187B

    #AF187B

    oklch(50.9% 0.201 347.2)

  • #6D6900

    #6D6900

    oklch(50.8% 0.109 107.1)

  • #007091

    #007091

    oklch(50.8% 0.098 227.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF187B

    #AF187B

    oklch(50.9% 0.201 347.2)

  • #875C00

    #875C00

    oklch(50.8% 0.106 77.1)

  • #007859

    #007859

    oklch(50.8% 0.104 167.2)

  • #0060CB

    #0060CB

    oklch(50.8% 0.183 257.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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