#AF6FA2

Closest named color: Soft Purple (#A66FB5). oklch(62.7% 0.106 334.5), rgb(175, 111, 162).

Aa

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

About this color

#AF6FA2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.106 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.033 away. Black text reads best on it, at 5.61:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromamoderately saturated (0.106)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text5.61:1
White text3.73:1

Values

HEX#AF6FA2
RGBrgb(175, 111, 162)
HSLhsl(312, 29%, 56%)
OKLCHoklch(62.7% 0.106 334.5)

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 #AF6FA2 3.73:1 AA large text Lc -70.3 Content text, not long reading
Black text on #AF6FA2 5.61:1 AA Lc 39.3 Non-text elements, placeholder text
#AF6FA2 text on white 3.73:1 AA large text Lc 64.8 Content text, not long reading
#AF6FA2 text on black 5.61:1 AA Lc -36.9 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

    #F9F4F7

    oklch(97.2% 0.007 340.4)

  2. Step 100

    100

    #F1E6EE

    oklch(93.6% 0.016 335.1)

  3. Step 200

    200

    #E6D2E1

    oklch(88.4% 0.03 334.4)

  4. Step 300

    300

    #D6B5CE

    oklch(80.9% 0.05 334.6)

  5. Step 400

    400

    #C18DB6

    oklch(70.7% 0.084 334.1)

  6. Step 500

    500 (this color)

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  7. Step 600

    600

    #9B588E

    oklch(55.6% 0.113 334.5)

  8. Step 700

    700

    #854779

    oklch(49.1% 0.108 334.7)

  9. Step 800

    800

    #6C3B62

    oklch(42.7% 0.088 335)

  10. Step 900

    900

    #583350

    oklch(37.8% 0.069 335.2)

  11. Step 950

    950

    #331E2F

    oklch(26.9% 0.043 333.8)

Export this scale for Tailwind in the Tailwind colors tool

#AF6FA2 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)#6F7EA40.104
Deuteranopia (no green cones)#7F87A00.095
Tritanopia (no blue cones)#B572820.053
Achromatopsia (no color)#8484840.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF6FA2

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  • #4E9B6B

    #4E9B6B

    oklch(62.7% 0.106 154.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF6FA2

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  • #9677BC

    #9677BC

    oklch(62.6% 0.106 304.1)

  • #BD6C80

    #BD6C80

    oklch(62.7% 0.105 4.7)

Open the analogous palette in the generator

Split complementary

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

  • #AF6FA2

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  • #7A9348

    #7A9348

    oklch(62.6% 0.106 124.6)

  • #1B9D90

    #1B9D90

    oklch(62.8% 0.106 184.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF6FA2

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  • #9D8733

    #9D8733

    oklch(62.7% 0.106 94.4)

  • #1A98AF

    #1A98AF

    oklch(62.7% 0.105 214.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF6FA2

    #AF6FA2

    oklch(62.7% 0.106 334.5)

  • #B47A3E

    #B47A3E

    oklch(62.7% 0.105 64.7)

  • #4E9B6B

    #4E9B6B

    oklch(62.7% 0.106 154.5)

  • #4B8EC3

    #4B8EC3

    oklch(62.5% 0.106 244.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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