#AFA4FA

Closest named color: Pastel Purple (#CAA0FF). oklch(76.1% 0.122 289), rgb(175, 164, 250).

Aa

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

About this color

#AFA4FA is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.122 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Pastel Purple (#CAA0FF), ΔE 0.041 away. Black text reads best on it, at 9.51:1.

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.122)
Temperaturecool
Nearest namePastel Purple (#CAA0FF)
Black text9.51:1
White text2.20:1

Values

HEX#AFA4FA
RGBrgb(175, 164, 250)
HSLhsl(248, 90%, 81%)
OKLCHoklch(76.1% 0.122 289)

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 #AFA4FA 2.20:1 Fails Lc -48.2 Large or bold text, headings
Black text on #AFA4FA 9.51:1 AAA Lc 60.6 Content text, not long reading
#AFA4FA text on white 2.20:1 Fails Lc 43.4 Non-text elements, placeholder text
#AFA4FA text on black 9.51:1 AAA Lc -58.8 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

    #F5F4FF

    oklch(97.1% 0.015 290.3)

  2. Step 100

    100

    #E9E7FF

    oklch(93.7% 0.032 289.6)

  3. Step 200

    200

    #D7D3FF

    oklch(88.4% 0.06 289.3)

  4. Step 300

    300 (this color)

    #AFA4FA

    oklch(76.1% 0.122 289)

  5. Step 400

    400

    #9F8CFF

    oklch(70.7% 0.164 289.1)

  6. Step 500

    500

    #8A69FF

    oklch(63.1% 0.213 288.9)

  7. Step 600

    600

    #793CFF

    oklch(55.6% 0.263 289)

  8. Step 700

    700

    #6725E2

    oklch(49.1% 0.252 288.9)

  9. Step 800

    800

    #5424B6

    oklch(42.7% 0.208 289.3)

  10. Step 900

    900

    #442690

    oklch(37.7% 0.163 289.1)

  11. Step 950

    950

    #271854

    oklch(26.9% 0.103 289)

Export this scale for Tailwind in the Tailwind colors tool

#AFA4FA 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)#8BB0FD0.052
Deuteranopia (no green cones)#8BACF80.050
Tritanopia (no blue cones)#9DB3C40.102
Achromatopsia (no color)#AEAEAE0.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA4FA

    #AFA4FA

    oklch(76.1% 0.122 289)

  • #B7B855

    #B7B855

    oklch(76.2% 0.122 109.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA4FA

    #AFA4FA

    oklch(76.1% 0.122 289)

  • #82B2FF

    #82B2FF

    oklch(76.1% 0.123 259.6)

  • #D398E3

    #D398E3

    oklch(76.2% 0.122 318.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFA4FA

    #AFA4FA

    oklch(76.1% 0.122 289)

  • #DBA84E

    #DBA84E

    oklch(76.2% 0.122 79.3)

  • #88C478

    #88C478

    oklch(76.1% 0.122 139.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA4FA

    #AFA4FA

    oklch(76.1% 0.122 289)

  • #F09969

    #F09969

    oklch(76.1% 0.122 49.1)

  • #52CAA4

    #52CAA4

    oklch(76.1% 0.122 169)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA4FA

    #AFA4FA

    oklch(76.1% 0.122 289)

  • #F59092

    #F59092

    oklch(76% 0.122 19.1)

  • #B7B855

    #B7B855

    oklch(76.2% 0.122 109.5)

  • #2AC8CF

    #2AC8CF

    oklch(76% 0.122 199.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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