#AF87B2

Closest named color: Dusty Lavender (#AC86A8). oklch(67.6% 0.077 324.1), rgb(175, 135, 178).

Aa

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

About this color

#AF87B2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 68%, its chroma 0.077 and its hue 324°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dusty Lavender (#AC86A8), ΔE 0.016 away. Black text reads best on it, at 6.93:1.

Hue familyPurples
Lightnessmedium-light (68%)
Chromamoderately saturated (0.077)
Temperaturein between
Nearest nameDusty Lavender (#AC86A8)
Black text6.93:1
White text3.02:1

Values

HEX#AF87B2
RGBrgb(175, 135, 178)
HSLhsl(296, 22%, 61%)
OKLCHoklch(67.6% 0.077 324.1)

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 #AF87B2 3.02:1 AA large text Lc -62.4 Content text, not long reading
Black text on #AF87B2 6.93:1 AA Lc 47.0 Large or bold text, headings
#AF87B2 text on white 3.02:1 AA large text Lc 57.0 Large or bold text, headings
#AF87B2 text on black 6.93:1 AA Lc -44.7 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 400.

  1. Step 50

    50

    #F8F4F8

    oklch(97.1% 0.007 325.6)

  2. Step 100

    100

    #EFE7EF

    oklch(93.7% 0.014 325.7)

  3. Step 200

    200

    #E2D3E3

    oklch(88.4% 0.027 323.9)

  4. Step 300

    300

    #D1B7D2

    oklch(81% 0.047 324.9)

  5. Step 400

    400 (this color)

    #AF87B2

    oklch(67.6% 0.077 324.1)

  6. Step 500

    500

    #A775AB

    oklch(63.2% 0.097 324.1)

  7. Step 600

    600

    #925C96

    oklch(55.5% 0.107 324.5)

  8. Step 700

    700

    #7C4C80

    oklch(49.1% 0.098 324.2)

  9. Step 800

    800

    #653E68

    oklch(42.6% 0.083 324.4)

  10. Step 900

    900

    #523555

    oklch(37.6% 0.065 323.5)

  11. Step 950

    950

    #301F32

    oklch(26.9% 0.042 323)

Export this scale for Tailwind in the Tailwind colors tool

#AF87B2 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)#8491B40.066
Deuteranopia (no green cones)#8D96B00.062
Tritanopia (no blue cones)#B18B960.047
Achromatopsia (no color)#9494940.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87B2

    #AF87B2

    oklch(67.6% 0.077 324.1)

  • #7AA479

    #7AA479

    oklch(67.6% 0.077 144.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87B2

    #AF87B2

    oklch(67.6% 0.077 324.1)

  • #998EC2

    #998EC2

    oklch(67.5% 0.077 294)

  • #BD839A

    #BD839A

    oklch(67.5% 0.077 353.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF87B2

    #AF87B2

    oklch(67.6% 0.077 324.1)

  • #969D65

    #969D65

    oklch(67.7% 0.077 114.3)

  • #61A793

    #61A793

    oklch(67.6% 0.078 173.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF87B2

    #AF87B2

    oklch(67.6% 0.077 324.1)

  • #AD935F

    #AD935F

    oklch(67.5% 0.076 83.9)

  • #58A5AD

    #58A5AD

    oklch(67.6% 0.077 204.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87B2

    #AF87B2

    oklch(67.6% 0.077 324.1)

  • #BD8A6A

    #BD8A6A

    oklch(67.5% 0.077 53.1)

  • #7AA479

    #7AA479

    oklch(67.6% 0.077 144.1)

  • #669FBF

    #669FBF

    oklch(67.5% 0.076 234.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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