#AF81DC

Closest named color: Wisteria (#A87DC2). oklch(68.3% 0.138 306.4), rgb(175, 129, 220).

Aa

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

About this color

#AF81DC is a medium-light, moderately saturated purple. In OKLCH its lightness is 68%, its chroma 0.138 and its hue 306°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Wisteria (#A87DC2), ΔE 0.040 away. Black text reads best on it, at 6.99:1.

Hue familyPurples
Lightnessmedium-light (68%)
Chromamoderately saturated (0.138)
Temperaturein between
Nearest nameWisteria (#A87DC2)
Black text6.99:1
White text3.00:1

Values

HEX#AF81DC
RGBrgb(175, 129, 220)
HSLhsl(270, 57%, 68%)
OKLCHoklch(68.3% 0.138 306.4)

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 #AF81DC 3.00:1 AA large text Lc -61.9 Content text, not long reading
Black text on #AF81DC 6.99:1 AA Lc 47.5 Large or bold text, headings
#AF81DC text on white 3.00:1 AA large text Lc 56.6 Large or bold text, headings
#AF81DC text on black 6.99:1 AA Lc -45.2 Large or bold text, headings

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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EEE6F7

    oklch(93.6% 0.024 307)

  3. Step 200

    200

    #E1D2F3

    oklch(88.6% 0.047 305.9)

  4. Step 300

    300

    #CFB3ED

    oklch(81% 0.086 306.5)

  5. Step 400

    400 (this color)

    #AF81DC

    oklch(68.3% 0.138 306.4)

  6. Step 500

    500

    #A567DC

    oklch(63.1% 0.177 306.5)

  7. Step 600

    600

    #904BC9

    oklch(55.6% 0.191 306.4)

  8. Step 700

    700

    #7B3BAE

    oklch(49.1% 0.178 306.5)

  9. Step 800

    800

    #64328D

    oklch(42.8% 0.147 306.4)

  10. Step 900

    900

    #512D71

    oklch(37.7% 0.115 306)

  11. Step 950

    950

    #301B42

    oklch(27% 0.073 307)

Export this scale for Tailwind in the Tailwind colors tool

#AF81DC 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)#6C93DF0.099
Deuteranopia (no green cones)#7795DA0.090
Tritanopia (no blue cones)#A88FA40.102
Achromatopsia (no color)#9595950.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF81DC

    #AF81DC

    oklch(68.3% 0.138 306.4)

  • #83A841

    #83A841

    oklch(68.3% 0.138 126.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF81DC

    #AF81DC

    oklch(68.3% 0.138 306.4)

  • #8390ED

    #8390ED

    oklch(68.3% 0.137 276.1)

  • #CE76B9

    #CE76B9

    oklch(68.4% 0.138 336.5)

Open the analogous palette in the generator

Split complementary

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

  • #AF81DC

    #AF81DC

    oklch(68.3% 0.138 306.4)

  • #B2980E

    #B2980E

    oklch(68.3% 0.138 96.5)

  • #3FB275

    #3FB275

    oklch(68.3% 0.138 156.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF81DC

    #AF81DC

    oklch(68.3% 0.138 306.4)

  • #D28628

    #D28628

    oklch(68.4% 0.138 66.3)

  • #00B1A5

    #00B1A5

    oklch(68.4% 0.12 186.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF81DC

    #AF81DC

    oklch(68.3% 0.138 306.4)

  • #E1775A

    #E1775A

    oklch(68.4% 0.139 36.2)

  • #83A841

    #83A841

    oklch(68.3% 0.138 126.5)

  • #00ABC9

    #00ABC9

    oklch(68.3% 0.121 216.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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