#AFA7FE

Closest named color: Pastel Purple (#CAA0FF). oklch(76.8% 0.123 287.3), rgb(175, 167, 254).

Aa

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

About this color

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

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

Values

HEX#AFA7FE
RGBrgb(175, 167, 254)
HSLhsl(246, 98%, 83%)
OKLCHoklch(76.8% 0.123 287.3)

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 #AFA7FE 2.14:1 Fails Lc -46.8 Large or bold text, headings
Black text on #AFA7FE 9.78:1 AAA Lc 61.9 Content text, not long reading
#AFA7FE text on white 2.14:1 Fails Lc 42.1 Non-text elements, placeholder text
#AFA7FE text on black 9.78:1 AAA Lc -60.1 Content text, not long reading

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

    #F4F4FF

    oklch(97% 0.015 286.1)

  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)

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  5. Step 400

    400

    #9C8EFF

    oklch(70.8% 0.161 287.2)

  6. Step 500

    500

    #876BFF

    oklch(63.1% 0.211 287.5)

  7. Step 600

    600

    #753FFF

    oklch(55.6% 0.261 287.4)

  8. Step 700

    700

    #6426E5

    oklch(49.2% 0.255 287.3)

  9. Step 800

    800

    #5124B8

    oklch(42.6% 0.21 287.5)

  10. Step 900

    900

    #422791

    oklch(37.7% 0.163 287.5)

  11. Step 950

    950

    #261955

    oklch(27.1% 0.103 287.3)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7FE 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)#8EB3FF0.049
Deuteranopia (no green cones)#8CAFFC0.048
Tritanopia (no blue cones)#9CB7C70.105
Achromatopsia (no color)#B1B1B10.123

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7FE

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  • #BCB955

    #BCB955

    oklch(76.8% 0.123 107.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7FE

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  • #82B6FF

    #82B6FF

    oklch(76.9% 0.119 257)

  • #D49AE7

    #D49AE7

    oklch(76.8% 0.124 317.6)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7FE

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  • #DFA950

    #DFA950

    oklch(76.8% 0.123 77.6)

  • #8DC677

    #8DC677

    oklch(76.8% 0.123 137.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7FE

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  • #F49A6D

    #F49A6D

    oklch(76.8% 0.124 46.9)

  • #56CDA4

    #56CDA4

    oklch(76.9% 0.123 167.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7FE

    #AFA7FE

    oklch(76.8% 0.123 287.3)

  • #F89297

    #F89297

    oklch(76.8% 0.123 17.2)

  • #BCB955

    #BCB955

    oklch(76.8% 0.123 107.4)

  • #2CCBCF

    #2CCBCF

    oklch(76.8% 0.123 197.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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