#AFA5F1

Closest named color: Baby Purple (#CA9BF7). oklch(75.9% 0.108 289.6), rgb(175, 165, 241).

Aa

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

About this color

#AFA5F1 is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.108 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.047 away. Black text reads best on it, at 9.47:1.

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.108)
Temperaturecool
Nearest nameBaby Purple (#CA9BF7)
Black text9.47:1
White text2.21:1

Values

HEX#AFA5F1
RGBrgb(175, 165, 241)
HSLhsl(248, 73%, 80%)
OKLCHoklch(75.9% 0.108 289.6)

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 #AFA5F1 2.21:1 Fails Lc -48.4 Large or bold text, headings
Black text on #AFA5F1 9.47:1 AAA Lc 60.4 Content text, not long reading
#AFA5F1 text on white 2.21:1 Fails Lc 43.6 Non-text elements, placeholder text
#AFA5F1 text on black 9.47:1 AAA Lc -58.6 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

    #E9E7FE

    oklch(93.6% 0.031 289.8)

  3. Step 200

    200

    #D8D3FF

    oklch(88.5% 0.06 290.3)

  4. Step 300

    300 (this color)

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  5. Step 400

    400

    #A08CFF

    oklch(70.8% 0.164 289.5)

  6. Step 500

    500

    #8C68FF

    oklch(63.1% 0.214 289.8)

  7. Step 600

    600

    #7846F2

    oklch(55.5% 0.24 289.5)

  8. Step 700

    700

    #6635D3

    oklch(49.1% 0.223 289.7)

  9. Step 800

    800

    #532EAB

    oklch(42.8% 0.186 289.7)

  10. Step 900

    900

    #442C87

    oklch(37.8% 0.144 289.9)

  11. Step 950

    950

    #271B4F

    oklch(27% 0.091 289.5)

Export this scale for Tailwind in the Tailwind colors tool

#AFA5F1 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)#91B0F40.045
Deuteranopia (no green cones)#90ACEF0.043
Tritanopia (no blue cones)#A0B2C00.092
Achromatopsia (no color)#AEAEAE0.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA5F1

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  • #B5B762

    #B5B762

    oklch(75.9% 0.108 109.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA5F1

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  • #88B2F5

    #88B2F5

    oklch(75.9% 0.107 259.5)

  • #CF9ADC

    #CF9ADC

    oklch(75.8% 0.109 319.6)

Open the analogous palette in the generator

Split complementary

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

  • #AFA5F1

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  • #D5A95C

    #D5A95C

    oklch(75.9% 0.108 79.9)

  • #8CC27F

    #8CC27F

    oklch(76% 0.109 139.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA5F1

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  • #E89C71

    #E89C71

    oklch(75.9% 0.108 50)

  • #61C7A6

    #61C7A6

    oklch(75.9% 0.108 169.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA5F1

    #AFA5F1

    oklch(75.9% 0.108 289.6)

  • #ED9495

    #ED9495

    oklch(75.8% 0.108 19.2)

  • #B5B762

    #B5B762

    oklch(75.9% 0.108 109.9)

  • #49C5CB

    #49C5CB

    oklch(75.8% 0.108 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 #AFA5F1, closest first.

Similar named colors

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

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