#AF5FA1

Closest named color: Soft Purple (#A66FB5). oklch(60% 0.133 333.9), rgb(175, 95, 161).

Aa

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

About this color

#AF5FA1 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 60%, its chroma 0.133 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.044 away. Black text reads best on it, at 4.97:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.133)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text4.97:1
White text4.22:1

Values

HEX#AF5FA1
RGBrgb(175, 95, 161)
HSLhsl(311, 33%, 53%)
OKLCHoklch(60% 0.133 333.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 #AF5FA1 4.22:1 AA large text Lc -74.3 Content text, not long reading
Black text on #AF5FA1 4.97:1 AA Lc 35.3 Non-text elements, placeholder text
#AF5FA1 text on white 4.22:1 AA large text Lc 68.8 Content text, not long reading
#AF5FA1 text on black 4.97:1 AA Lc -32.8 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

    #F9F3F8

    oklch(97% 0.009 330.9)

  2. Step 100

    100

    #F2E5EF

    oklch(93.5% 0.019 333.5)

  3. Step 200

    200

    #E9D1E3

    oklch(88.6% 0.036 334.5)

  4. Step 300

    300

    #DBB1D2

    oklch(80.8% 0.065 333.7)

  5. Step 400

    400

    #C888BC

    oklch(70.8% 0.104 333.5)

  6. Step 500

    500 (this color)

    #AF5FA1

    oklch(60% 0.133 333.9)

  7. Step 600

    600

    #A44E96

    oklch(55.6% 0.145 333.9)

  8. Step 700

    700

    #8C3E80

    oklch(49% 0.135 333.7)

  9. Step 800

    800

    #723468

    oklch(42.7% 0.112 333.8)

  10. Step 900

    900

    #5C2E54

    oklch(37.6% 0.086 334)

  11. Step 950

    950

    #361B31

    oklch(26.9% 0.055 334.2)

Export this scale for Tailwind in the Tailwind colors tool

#AF5FA1 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)#5E74A30.134
Deuteranopia (no green cones)#747F9F0.120
Tritanopia (no blue cones)#B663780.068
Achromatopsia (no color)#7B7B7B0.135

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF5FA1

    #AF5FA1

    oklch(60% 0.133 333.9)

  • #2C975A

    #2C975A

    oklch(60.1% 0.134 153.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF5FA1

    #AF5FA1

    oklch(60% 0.133 333.9)

  • #926AC0

    #926AC0

    oklch(60.1% 0.133 304.2)

  • #C05A77

    #C05A77

    oklch(60.1% 0.134 4)

Open the analogous palette in the generator

Split complementary

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

  • #AF5FA1

    #AF5FA1

    oklch(60% 0.133 333.9)

  • #708D23

    #708D23

    oklch(60.1% 0.134 124)

  • #009587

    #009587

    oklch(60.2% 0.107 183.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF5FA1

    #AF5FA1

    oklch(60% 0.133 333.9)

  • #997E00

    #997E00

    oklch(60.1% 0.123 93.8)

  • #0090A7

    #0090A7

    oklch(60.1% 0.106 214.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF5FA1

    #AF5FA1

    oklch(60% 0.133 333.9)

  • #B66C09

    #B66C09

    oklch(60% 0.133 64)

  • #2C975A

    #2C975A

    oklch(60.1% 0.134 153.8)

  • #2587C9

    #2587C9

    oklch(60% 0.133 243.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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