#AFA5E8

Closest named color: Baby Purple (#CA9BF7). oklch(75.5% 0.096 290.8), rgb(175, 165, 232).

Aa

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

About this color

#AFA5E8 is a medium-light, moderately saturated purple. In OKLCH its lightness is 75%, its chroma 0.096 and its hue 291°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.053 away. Black text reads best on it, at 9.37:1.

Hue familyPurples
Lightnessmedium-light (75%)
Chromamoderately saturated (0.096)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.37:1
White text2.24:1

Values

HEX#AFA5E8
RGBrgb(175, 165, 232)
HSLhsl(249, 59%, 78%)
OKLCHoklch(75.5% 0.096 290.8)

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 #AFA5E8 2.24:1 Fails Lc -48.9 Large or bold text, headings
Black text on #AFA5E8 9.37:1 AAA Lc 59.8 Large or bold text, headings
#AFA5E8 text on white 2.24:1 Fails Lc 44.1 Non-text elements, placeholder text
#AFA5E8 text on black 9.37:1 AAA Lc -58.0 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

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E9E8F5

    oklch(93.6% 0.017 289.6)

  3. Step 200

    200

    #D8D6EE

    oklch(88.5% 0.033 289.5)

  4. Step 300

    300

    #C0BBE5

    oklch(81% 0.059 290.5)

  5. Step 400

    400 (this color)

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  6. Step 500

    500

    #8A7BCE

    oklch(63.1% 0.123 290.7)

  7. Step 600

    600

    #7463BA

    oklch(55.6% 0.132 290.4)

  8. Step 700

    700

    #6251A1

    oklch(49.1% 0.125 290.9)

  9. Step 800

    800

    #504382

    oklch(42.7% 0.102 290.9)

  10. Step 900

    900

    #423968

    oklch(37.7% 0.079 290.9)

  11. Step 950

    950

    #27223D

    oklch(27.1% 0.049 291.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFA5E8 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)#94AEEB0.040
Deuteranopia (no green cones)#94ACE60.039
Tritanopia (no blue cones)#A3B0BD0.080
Achromatopsia (no color)#ADADAD0.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA5E8

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  • #B2B56C

    #B2B56C

    oklch(75.4% 0.096 110.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA5E8

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  • #8DB0EC

    #8DB0EC

    oklch(75.4% 0.095 260.9)

  • #CB9CD5

    #CB9CD5

    oklch(75.5% 0.095 320.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFA5E8

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  • #CFA967

    #CFA967

    oklch(75.5% 0.095 80.3)

  • #8EBF85

    #8EBF85

    oklch(75.5% 0.096 140.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA5E8

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  • #E19E77

    #E19E77

    oklch(75.5% 0.096 51)

  • #6BC3A7

    #6BC3A7

    oklch(75.4% 0.095 170.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA5E8

    #AFA5E8

    oklch(75.5% 0.096 290.8)

  • #E69795

    #E69795

    oklch(75.5% 0.096 21.2)

  • #B2B56C

    #B2B56C

    oklch(75.4% 0.096 110.5)

  • #5BC2C8

    #5BC2C8

    oklch(75.6% 0.096 200.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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