#AFA2F5

Closest named color: Baby Purple (#CA9BF7). oklch(75.5% 0.118 290.5), rgb(175, 162, 245).

Aa

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

About this color

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

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

Values

HEX#AFA2F5
RGBrgb(175, 162, 245)
HSLhsl(249, 81%, 80%)
OKLCHoklch(75.5% 0.118 290.5)

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 #AFA2F5 2.25:1 Fails Lc -49.2 Large or bold text, headings
Black text on #AFA2F5 9.30:1 AAA Lc 59.6 Large or bold text, headings
#AFA2F5 text on white 2.25:1 Fails Lc 44.4 Non-text elements, placeholder text
#AFA2F5 text on black 9.30:1 AAA Lc -57.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 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

    #D8D5F3

    oklch(88.5% 0.041 290.1)

  4. Step 300

    300

    #C0B9EE

    oklch(81% 0.074 290.7)

  5. Step 400

    400 (this color)

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  6. Step 500

    500

    #8A76DD

    oklch(63% 0.151 290.3)

  7. Step 600

    600

    #755CCB

    oklch(55.5% 0.165 290.4)

  8. Step 700

    700

    #634BAF

    oklch(49% 0.153 290.7)

  9. Step 800

    800

    #503E8E

    oklch(42.6% 0.127 290.3)

  10. Step 900

    900

    #423671

    oklch(37.7% 0.098 290.3)

  11. Step 950

    950

    #272042

    oklch(27% 0.062 291.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFA2F5 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)#8BAEF80.052
Deuteranopia (no green cones)#8CABF30.050
Tritanopia (no blue cones)#9FB1C00.101
Achromatopsia (no color)#ADADAD0.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA2F5

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  • #B3B658

    #B3B658

    oklch(75.4% 0.118 110.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA2F5

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  • #84B0FA

    #84B0FA

    oklch(75.5% 0.117 260.5)

  • #D196DE

    #D196DE

    oklch(75.4% 0.119 320.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFA2F5

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  • #D6A750

    #D6A750

    oklch(75.5% 0.118 80.7)

  • #86C27A

    #86C27A

    oklch(75.5% 0.118 140.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA2F5

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  • #EB9968

    #EB9968

    oklch(75.5% 0.118 51)

  • #52C8A5

    #52C8A5

    oklch(75.6% 0.119 170.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA2F5

    #AFA2F5

    oklch(75.5% 0.118 290.5)

  • #F19090

    #F19090

    oklch(75.5% 0.118 20.2)

  • #B3B658

    #B3B658

    oklch(75.4% 0.118 110.6)

  • #32C6CD

    #32C6CD

    oklch(75.6% 0.118 199.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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