#AF87CA

Closest named color: Pale Purple (#B790D4). oklch(68.6% 0.105 311.1), rgb(175, 135, 202).

Aa

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

About this color

#AF87CA is a medium-light, moderately saturated purple. In OKLCH its lightness is 69%, its chroma 0.105 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Purple (#B790D4), ΔE 0.028 away. Black text reads best on it, at 7.14:1.

Hue familyPurples
Lightnessmedium-light (69%)
Chromamoderately saturated (0.105)
Temperaturein between
Nearest namePale Purple (#B790D4)
Black text7.14:1
White text2.94:1

Values

HEX#AF87CA
RGBrgb(175, 135, 202)
HSLhsl(276, 39%, 66%)
OKLCHoklch(68.6% 0.105 311.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 #AF87CA 2.94:1 Fails Lc -61.1 Content text, not long reading
Black text on #AF87CA 7.14:1 AAA Lc 48.2 Large or bold text, headings
#AF87CA text on white 2.94:1 Fails Lc 55.8 Large or bold text, headings
#AF87CA text on black 7.14:1 AAA Lc -46.0 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

    #F7F4FA

    oklch(97.1% 0.009 308.4)

  2. Step 100

    100

    #EEE6F3

    oklch(93.5% 0.019 312.8)

  3. Step 200

    200

    #E1D3EB

    oklch(88.5% 0.036 311.4)

  4. Step 300

    300

    #CEB5E0

    oklch(80.8% 0.065 311)

  5. Step 400

    400 (this color)

    #AF87CA

    oklch(68.6% 0.105 311.1)

  6. Step 500

    500

    #A470C5

    oklch(63.2% 0.135 311.2)

  7. Step 600

    600

    #8F56B1

    oklch(55.6% 0.147 311.4)

  8. Step 700

    700

    #794698

    oklch(49% 0.136 311.1)

  9. Step 800

    800

    #633A7C

    oklch(42.8% 0.113 311.2)

  10. Step 900

    900

    #503263

    oklch(37.5% 0.088 311)

  11. Step 950

    950

    #2F1E3A

    oklch(27% 0.055 311.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF87CA 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)#7B94CD0.078
Deuteranopia (no green cones)#8497C80.072
Tritanopia (no blue cones)#AC909F0.076
Achromatopsia (no color)#9696960.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87CA

    #AF87CA

    oklch(68.6% 0.105 311.1)

  • #83A761

    #83A761

    oklch(68.5% 0.104 130.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87CA

    #AF87CA

    oklch(68.6% 0.105 311.1)

  • #8E92DA

    #8E92DA

    oklch(68.5% 0.106 280.8)

  • #C680AD

    #C680AD

    oklch(68.6% 0.104 341.3)

Open the analogous palette in the generator

Split complementary

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

  • #AF87CA

    #AF87CA

    oklch(68.6% 0.105 311.1)

  • #A89C49

    #A89C49

    oklch(68.6% 0.105 101.2)

  • #57AE85

    #57AE85

    oklch(68.5% 0.105 161.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF87CA

    #AF87CA

    oklch(68.6% 0.105 311.1)

  • #C38E4C

    #C38E4C

    oklch(68.5% 0.105 70.5)

  • #33AEAA

    #33AEAA

    oklch(68.5% 0.105 191.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87CA

    #AF87CA

    oklch(68.6% 0.105 311.1)

  • #D18366

    #D18366

    oklch(68.5% 0.105 41.1)

  • #83A761

    #83A761

    oklch(68.5% 0.104 130.9)

  • #3EA9C8

    #3EA9C8

    oklch(68.7% 0.105 220.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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