#AFA7F8

Closest named color: Pastel Purple (#CAA0FF). oklch(76.6% 0.115 287.9), rgb(175, 167, 248).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (77%)
Chromamoderately saturated (0.115)
Temperaturecool
Nearest namePastel Purple (#CAA0FF)
Black text9.70:1
White text2.16:1

Values

HEX#AFA7F8
RGBrgb(175, 167, 248)
HSLhsl(246, 85%, 81%)
OKLCHoklch(76.6% 0.115 287.9)

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 #AFA7F8 2.16:1 Fails Lc -47.2 Large or bold text, headings
Black text on #AFA7F8 9.70:1 AAA Lc 61.5 Content text, not long reading
#AFA7F8 text on white 2.16:1 Fails Lc 42.5 Non-text elements, placeholder text
#AFA7F8 text on black 9.70:1 AAA Lc -59.7 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

    #E8E7FF

    oklch(93.6% 0.032 287.7)

  3. Step 200

    200

    #D6D4FF

    oklch(88.5% 0.059 287.3)

  4. Step 300

    300 (this color)

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  5. Step 400

    400

    #9D8DFF

    oklch(70.7% 0.163 287.9)

  6. Step 500

    500

    #886AFF

    oklch(63% 0.212 288)

  7. Step 600

    600

    #7641FC

    oklch(55.6% 0.256 287.9)

  8. Step 700

    700

    #6430DB

    oklch(49.1% 0.237 288.1)

  9. Step 800

    800

    #512BB1

    oklch(42.7% 0.196 288)

  10. Step 900

    900

    #422A8C

    oklch(37.7% 0.153 288)

  11. Step 950

    950

    #261A52

    oklch(27% 0.097 287.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7F8 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)#90B2FB0.046
Deuteranopia (no green cones)#8FAEF60.044
Tritanopia (no blue cones)#9EB5C40.098
Achromatopsia (no color)#B0B0B00.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7F8

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  • #BAB85D

    #BAB85D

    oklch(76.5% 0.114 107.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7F8

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  • #84B5FC

    #84B5FC

    oklch(76.7% 0.115 257.6)

  • #D19BE2

    #D19BE2

    oklch(76.5% 0.115 317.9)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7F8

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  • #DBA958

    #DBA958

    oklch(76.5% 0.115 77.7)

  • #8EC47C

    #8EC47C

    oklch(76.5% 0.114 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7F8

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  • #EF9C71

    #EF9C71

    oklch(76.7% 0.115 47.9)

  • #5ECAA5

    #5ECAA5

    oklch(76.5% 0.114 168.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7F8

    #AFA7F8

    oklch(76.6% 0.115 287.9)

  • #F39497

    #F39497

    oklch(76.5% 0.115 18.1)

  • #BAB85D

    #BAB85D

    oklch(76.5% 0.114 107.7)

  • #3FC9CD

    #3FC9CD

    oklch(76.6% 0.115 197.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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