#AF3F8F

Closest named color: Medium Violet Red (#C71585). oklch(55% 0.171 340.7), rgb(175, 63, 143).

Aa

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

About this color

#AF3F8F is a medium-dark, vivid pink. In OKLCH its lightness is 55%, its chroma 0.171 and its hue 341°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.059 away. White text reads best on it, at 5.34:1.

Hue familyPinks
Lightnessmedium-dark (55%)
Chromavivid (0.171)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.93:1
White text5.34:1

Values

HEX#AF3F8F
RGBrgb(175, 63, 143)
HSLhsl(317, 47%, 47%)
OKLCHoklch(55% 0.171 340.7)

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 #AF3F8F 5.34:1 AA Lc -81.2 Fine for body text
Black text on #AF3F8F 3.93:1 AA large text Lc 28.3 Dividers and decoration only
#AF3F8F text on white 5.34:1 AA Lc 75.8 Fine for body text
#AF3F8F text on black 3.93:1 AA large text Lc -25.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

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F5E4EE

    oklch(93.5% 0.023 341.3)

  3. Step 200

    200

    #EECFE2

    oklch(88.6% 0.043 340.7)

  4. Step 300

    300

    #E4AED0

    oklch(81% 0.077 340.8)

  5. Step 400

    400

    #D481B8

    oklch(70.8% 0.123 340.7)

  6. Step 500

    500

    #C65EA6

    oklch(63.1% 0.157 340.6)

  7. Step 600

    600 (this color)

    #AF3F8F

    oklch(55% 0.171 340.7)

  8. Step 700

    700

    #98327B

    oklch(49.1% 0.159 340.9)

  9. Step 800

    800

    #7C2B64

    oklch(42.8% 0.131 341.2)

  10. Step 900

    900

    #642852

    oklch(37.8% 0.102 340.6)

  11. Step 950

    950

    #3B1830

    oklch(27% 0.065 340.8)

Export this scale for Tailwind in the Tailwind colors tool

#AF3F8F 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)#465F910.184
Deuteranopia (no green cones)#68718C0.161
Tritanopia (no blue cones)#B941610.077
Achromatopsia (no color)#6B6B6B0.172

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF3F8F

    #AF3F8F

    oklch(55% 0.171 340.7)

  • #008759

    #008759

    oklch(55% 0.123 160.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF3F8F

    #AF3F8F

    oklch(55% 0.171 340.7)

  • #914DBA

    #914DBA

    oklch(55% 0.172 310.8)

  • #BF3959

    #BF3959

    oklch(55% 0.17 10.7)

Open the analogous palette in the generator

Split complementary

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

  • #AF3F8F

    #AF3F8F

    oklch(55% 0.171 340.7)

  • #528200

    #528200

    oklch(55.1% 0.15 130.7)

  • #00837E

    #00837E

    oklch(55% 0.095 190.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF3F8F

    #AF3F8F

    oklch(55% 0.171 340.7)

  • #817200

    #817200

    oklch(54.9% 0.114 100.2)

  • #007E9A

    #007E9A

    oklch(54.9% 0.1 220.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF3F8F

    #AF3F8F

    oklch(55% 0.171 340.7)

  • #9C6300

    #9C6300

    oklch(54.9% 0.118 70.6)

  • #008759

    #008759

    oklch(55% 0.123 160.7)

  • #0073C9

    #0073C9

    oklch(54.9% 0.158 250.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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