#AFA7E5

Closest named color: Pale Purple (#B790D4). oklch(75.7% 0.088 290), rgb(175, 167, 229).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.088)
Temperaturein between
Nearest namePale Purple (#B790D4)
Black text9.48:1
White text2.21:1

Values

HEX#AFA7E5
RGBrgb(175, 167, 229)
HSLhsl(248, 54%, 78%)
OKLCHoklch(75.7% 0.088 290)

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 #AFA7E5 2.21:1 Fails Lc -48.4 Large or bold text, headings
Black text on #AFA7E5 9.48:1 AAA Lc 60.4 Content text, not long reading
#AFA7E5 text on white 2.21:1 Fails Lc 43.6 Non-text elements, placeholder text
#AFA7E5 text on black 9.48:1 AAA Lc -58.6 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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E9E8F4

    oklch(93.5% 0.016 289.9)

  3. Step 200

    200

    #D8D6ED

    oklch(88.5% 0.031 289.7)

  4. Step 300

    300

    #BFBBE3

    oklch(80.8% 0.056 289.7)

  5. Step 400

    400 (this color)

    #AFA7E5

    oklch(75.7% 0.088 290)

  6. Step 500

    500

    #897DC9

    oklch(63.2% 0.113 290)

  7. Step 600

    600

    #7365B6

    oklch(55.6% 0.123 289.7)

  8. Step 700

    700

    #61539C

    oklch(49% 0.114 290.4)

  9. Step 800

    800

    #4F447F

    oklch(42.6% 0.096 290.3)

  10. Step 900

    900

    #413A66

    oklch(37.7% 0.074 289.7)

  11. Step 950

    950

    #26223C

    oklch(27% 0.048 289.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7E5 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)#97AFE80.035
Deuteranopia (no green cones)#97ADE30.035
Tritanopia (no blue cones)#A3B1BD0.074
Achromatopsia (no color)#AEAEAE0.089

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7E5

    #AFA7E5

    oklch(75.7% 0.088 290)

  • #B3B673

    #B3B673

    oklch(75.8% 0.089 110.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7E5

    #AFA7E5

    oklch(75.7% 0.088 290)

  • #90B1E9

    #90B1E9

    oklch(75.7% 0.089 260.8)

  • #CA9ED3

    #CA9ED3

    oklch(75.7% 0.089 320.6)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7E5

    #AFA7E5

    oklch(75.7% 0.088 290)

  • #CEAA6E

    #CEAA6E

    oklch(75.7% 0.088 79.6)

  • #92BE89

    #92BE89

    oklch(75.6% 0.088 140.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7E5

    #AFA7E5

    oklch(75.7% 0.088 290)

  • #DEA07D

    #DEA07D

    oklch(75.7% 0.088 50.4)

  • #73C3A8

    #73C3A8

    oklch(75.8% 0.089 170.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7E5

    #AFA7E5

    oklch(75.7% 0.088 290)

  • #E39A99

    #E39A99

    oklch(75.8% 0.088 20.2)

  • #B3B673

    #B3B673

    oklch(75.8% 0.089 110.5)

  • #65C1C6

    #65C1C6

    oklch(75.6% 0.088 200.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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