#AFA1F4

Closest named color: Baby Purple (#CA9BF7). oklch(75.3% 0.118 291), rgb(175, 161, 244).

Aa

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

About this color

#AFA1F4 is a medium-light, moderately saturated purple. In OKLCH its lightness is 75%, its chroma 0.118 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.042 away. Black text reads best on it, at 9.22:1.

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

Values

HEX#AFA1F4
RGBrgb(175, 161, 244)
HSLhsl(250, 79%, 79%)
OKLCHoklch(75.3% 0.118 291)

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 #AFA1F4 2.27:1 Fails Lc -49.7 Large or bold text, headings
Black text on #AFA1F4 9.22:1 AAA Lc 59.2 Large or bold text, headings
#AFA1F4 text on white 2.27:1 Fails Lc 44.8 Non-text elements, placeholder text
#AFA1F4 text on black 9.22:1 AAA Lc -57.3 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

    #F5F4FC

    oklch(97% 0.011 292)

  2. Step 100

    100

    #E9E8F8

    oklch(93.6% 0.021 288.9)

  3. Step 200

    200

    #D9D5F3

    oklch(88.5% 0.041 291.7)

  4. Step 300

    300

    #C0B9ED

    oklch(80.9% 0.073 290.8)

  5. Step 400

    400 (this color)

    #AFA1F4

    oklch(75.3% 0.118 291)

  6. Step 500

    500

    #8B76DD

    oklch(63.1% 0.151 290.8)

  7. Step 600

    600

    #765CCA

    oklch(55.5% 0.164 291)

  8. Step 700

    700

    #644BAF

    oklch(49.1% 0.153 291.3)

  9. Step 800

    800

    #513E8E

    oklch(42.7% 0.127 291)

  10. Step 900

    900

    #433671

    oklch(37.8% 0.098 291.1)

  11. Step 950

    950

    #272042

    oklch(27% 0.062 291.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFA1F4 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)#8AADF70.054
Deuteranopia (no green cones)#8BAAF20.051
Tritanopia (no blue cones)#A0B0BF0.100
Achromatopsia (no color)#ACACAC0.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA1F4

    #AFA1F4

    oklch(75.3% 0.118 291)

  • #B2B657

    #B2B657

    oklch(75.3% 0.119 111.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA1F4

    #AFA1F4

    oklch(75.3% 0.118 291)

  • #84AFFA

    #84AFFA

    oklch(75.3% 0.118 261.1)

  • #D195DC

    #D195DC

    oklch(75.2% 0.119 321.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFA1F4

    #AFA1F4

    oklch(75.3% 0.118 291)

  • #D5A64F

    #D5A64F

    oklch(75.2% 0.118 80.6)

  • #84C17A

    #84C17A

    oklch(75.2% 0.117 141)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA1F4

    #AFA1F4

    oklch(75.3% 0.118 291)

  • #EA9867

    #EA9867

    oklch(75.2% 0.118 51)

  • #50C7A5

    #50C7A5

    oklch(75.3% 0.118 171.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA1F4

    #AFA1F4

    oklch(75.3% 0.118 291)

  • #F08F8E

    #F08F8E

    oklch(75.2% 0.118 20.9)

  • #B2B657

    #B2B657

    oklch(75.3% 0.119 111.1)

  • #31C5CD

    #31C5CD

    oklch(75.3% 0.118 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 #AFA1F4, closest first.

Similar named colors

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

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