#AFA7EA

Closest named color: Pale Violet (#CEAEFA). oklch(75.9% 0.095 289.4), rgb(175, 167, 234).

Aa

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

About this color

#AFA7EA is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.095 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Pale Violet (#CEAEFA), ΔE 0.054 away. Black text reads best on it, at 9.53:1.

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.095)
Temperaturecool
Nearest namePale Violet (#CEAEFA)
Black text9.53:1
White text2.20:1

Values

HEX#AFA7EA
RGBrgb(175, 167, 234)
HSLhsl(247, 61%, 79%)
OKLCHoklch(75.9% 0.095 289.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 #AFA7EA 2.20:1 Fails Lc -48.1 Large or bold text, headings
Black text on #AFA7EA 9.53:1 AAA Lc 60.6 Content text, not long reading
#AFA7EA text on white 2.20:1 Fails Lc 43.3 Non-text elements, placeholder text
#AFA7EA text on black 9.53:1 AAA Lc -58.9 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 300.

  1. Step 50

    50

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #E9E7FC

    oklch(93.6% 0.028 290.2)

  3. Step 200

    200

    #D7D4FB

    oklch(88.5% 0.053 288.8)

  4. Step 300

    300 (this color)

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  5. Step 400

    400

    #9F8EF9

    oklch(70.7% 0.153 289.2)

  6. Step 500

    500

    #8A6DF5

    oklch(63% 0.195 289.4)

  7. Step 600

    600

    #7650E4

    oklch(55.5% 0.213 289.4)

  8. Step 700

    700

    #6440C6

    oklch(49.2% 0.197 289.5)

  9. Step 800

    800

    #5136A0

    oklch(42.7% 0.163 289.4)

  10. Step 900

    900

    #42307F

    oklch(37.6% 0.128 289.3)

  11. Step 950

    950

    #271D4A

    oklch(27% 0.08 290.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7EA 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)#96B0ED0.038
Deuteranopia (no green cones)#95ADE80.037
Tritanopia (no blue cones)#A2B2BF0.080
Achromatopsia (no color)#AFAFAF0.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7EA

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  • #B5B66D

    #B5B66D

    oklch(75.9% 0.095 109.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7EA

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  • #8DB2EE

    #8DB2EE

    oklch(75.9% 0.096 259.9)

  • #CC9DD7

    #CC9DD7

    oklch(75.9% 0.096 319.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7EA

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  • #D1AA69

    #D1AA69

    oklch(75.9% 0.095 79.4)

  • #91C085

    #91C085

    oklch(75.9% 0.096 139.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7EA

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  • #E39F7A

    #E39F7A

    oklch(76% 0.096 49.4)

  • #6EC5A7

    #6EC5A7

    oklch(76% 0.096 169.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7EA

    #AFA7EA

    oklch(75.9% 0.095 289.4)

  • #E79898

    #E79898

    oklch(75.9% 0.095 19.5)

  • #B5B66D

    #B5B66D

    oklch(75.9% 0.095 109.1)

  • #5DC3C8

    #5DC3C8

    oklch(75.9% 0.095 199.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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