#AF5BA9

Closest named color: Soft Purple (#A66FB5). oklch(59.8% 0.147 329.9), rgb(175, 91, 169).

Aa

Black text reads best on this color (4.89:1).

About this color

#AF5BA9 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.147 and its hue 330°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.047 away. Black text reads best on it, at 4.89:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromavivid (0.147)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text4.89:1
White text4.29:1

Values

HEX#AF5BA9
RGBrgb(175, 91, 169)
HSLhsl(304, 34%, 52%)
OKLCHoklch(59.8% 0.147 329.9)

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 #AF5BA9 4.29:1 AA large text Lc -74.8 Content text, not long reading
Black text on #AF5BA9 4.89:1 AA Lc 34.8 Non-text elements, placeholder text
#AF5BA9 text on white 4.29:1 AA large text Lc 69.3 Content text, not long reading
#AF5BA9 text on black 4.89:1 AA Lc -32.3 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F2E5F1

    oklch(93.6% 0.021 328.1)

  3. Step 200

    200

    #E9D0E6

    oklch(88.5% 0.04 329.8)

  4. Step 300

    300

    #DCB0D7

    oklch(80.9% 0.073 330)

  5. Step 400

    400

    #C986C3

    oklch(70.8% 0.115 329.9)

  6. Step 500

    500 (this color)

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  7. Step 600

    600

    #A54A9F

    oklch(55.6% 0.16 330)

  8. Step 700

    700

    #8D3A88

    oklch(49% 0.149 330)

  9. Step 800

    800

    #73316F

    oklch(42.8% 0.124 329.9)

  10. Step 900

    900

    #5D2C5A

    oklch(37.7% 0.097 329.6)

  11. Step 950

    950

    #371A34

    oklch(27% 0.061 331)

Export this scale for Tailwind in the Tailwind colors tool

#AF5BA9 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)#5673AC0.146
Deuteranopia (no green cones)#6E7EA60.131
Tritanopia (no blue cones)#B5627A0.081
Achromatopsia (no color)#7A7A7A0.149

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF5BA9

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  • #28974D

    #28974D

    oklch(59.8% 0.147 150)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF5BA9

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  • #8E68CA

    #8E68CA

    oklch(59.9% 0.148 299.8)

  • #C3547C

    #C3547C

    oklch(59.8% 0.147 360)

Open the analogous palette in the generator

Split complementary

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

  • #AF5BA9

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  • #768B00

    #768B00

    oklch(59.9% 0.142 119.8)

  • #009482

    #009482

    oklch(59.7% 0.108 180.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF5BA9

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  • #9C7B00

    #9C7B00

    oklch(59.8% 0.122 89.8)

  • #0090A1

    #0090A1

    oklch(59.8% 0.103 209.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF5BA9

    #AF5BA9

    oklch(59.8% 0.147 329.9)

  • #BB6700

    #BB6700

    oklch(59.8% 0.141 59.5)

  • #28974D

    #28974D

    oklch(59.8% 0.147 150)

  • #0088C8

    #0088C8

    oklch(59.8% 0.137 240)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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