#AFA7E4

Closest named color: Pale Purple (#B790D4). oklch(75.7% 0.087 290.2), rgb(175, 167, 228).

Aa

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

About this color

#AFA7E4 is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.087 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.47:1.

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

Values

HEX#AFA7E4
RGBrgb(175, 167, 228)
HSLhsl(248, 53%, 77%)
OKLCHoklch(75.7% 0.087 290.2)

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 #AFA7E4 2.21:1 Fails Lc -48.4 Large or bold text, headings
Black text on #AFA7E4 9.47:1 AAA Lc 60.3 Content text, not long reading
#AFA7E4 text on white 2.21:1 Fails Lc 43.7 Non-text elements, placeholder text
#AFA7E4 text on black 9.47:1 AAA Lc -58.5 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

    #D8D6EC

    oklch(88.4% 0.03 289.9)

  4. Step 300

    300

    #C0BBE2

    oklch(80.9% 0.055 291)

  5. Step 400

    400 (this color)

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  6. Step 500

    500

    #897DC8

    oklch(63.1% 0.111 290.2)

  7. Step 600

    600

    #7365B4

    oklch(55.5% 0.12 290.1)

  8. Step 700

    700

    #61549B

    oklch(49.2% 0.111 290.1)

  9. Step 800

    800

    #4F457E

    oklch(42.8% 0.093 290)

  10. Step 900

    900

    #413A65

    oklch(37.6% 0.072 289.9)

  11. Step 950

    950

    #26223B

    oklch(26.9% 0.046 290.3)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7E4 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)#98AFE70.034
Deuteranopia (no green cones)#98ADE20.034
Tritanopia (no blue cones)#A4B1BC0.074
Achromatopsia (no color)#AEAEAE0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7E4

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  • #B3B574

    #B3B574

    oklch(75.6% 0.086 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7E4

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  • #90B1E8

    #90B1E8

    oklch(75.6% 0.088 260.5)

  • #C99ED3

    #C99ED3

    oklch(75.6% 0.088 319.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7E4

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  • #CDAA6F

    #CDAA6F

    oklch(75.6% 0.087 79.9)

  • #93BE8A

    #93BE8A

    oklch(75.7% 0.086 140.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7E4

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  • #DEA07E

    #DEA07E

    oklch(75.7% 0.088 49.7)

  • #74C2A8

    #74C2A8

    oklch(75.6% 0.087 170.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7E4

    #AFA7E4

    oklch(75.7% 0.087 290.2)

  • #E29A99

    #E29A99

    oklch(75.7% 0.087 20.2)

  • #B3B574

    #B3B574

    oklch(75.6% 0.086 109.8)

  • #66C1C6

    #66C1C6

    oklch(75.7% 0.087 200.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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