#AFA2FB

Closest named color: Pastel Purple (#CAA0FF). oklch(75.8% 0.126 289.7), rgb(175, 162, 251).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.126)
Temperaturecool
Nearest namePastel Purple (#CAA0FF)
Black text9.38:1
White text2.23:1

Values

HEX#AFA2FB
RGBrgb(175, 162, 251)
HSLhsl(249, 92%, 81%)
OKLCHoklch(75.8% 0.126 289.7)

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 #AFA2FB 2.23:1 Fails Lc -48.8 Large or bold text, headings
Black text on #AFA2FB 9.38:1 AAA Lc 59.9 Large or bold text, headings
#AFA2FB text on white 2.23:1 Fails Lc 44.0 Non-text elements, placeholder text
#AFA2FB text on black 9.38:1 AAA Lc -58.1 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

    #E9E8F9

    oklch(93.7% 0.023 288.7)

  3. Step 200

    200

    #D8D5F5

    oklch(88.5% 0.044 289.8)

  4. Step 300

    300

    #BFB9F1

    oklch(81% 0.079 289.4)

  5. Step 400

    400 (this color)

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  6. Step 500

    500

    #8A74E3

    oklch(63% 0.162 290.1)

  7. Step 600

    600

    #755AD1

    oklch(55.6% 0.176 289.9)

  8. Step 700

    700

    #6249B5

    oklch(49% 0.164 289.6)

  9. Step 800

    800

    #503D92

    oklch(42.7% 0.134 289.8)

  10. Step 900

    900

    #423575

    oklch(37.7% 0.106 289.7)

  11. Step 950

    950

    #262044

    oklch(27% 0.065 288.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFA2FB 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)#88AFFF0.056
Deuteranopia (no green cones)#89ABF90.053
Tritanopia (no blue cones)#9DB2C30.106
Achromatopsia (no color)#ADADAD0.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA2FB

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  • #B6B750

    #B6B750

    oklch(75.8% 0.126 109.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA2FB

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  • #81B1FF

    #81B1FF

    oklch(75.8% 0.124 259.8)

  • #D495E2

    #D495E2

    oklch(75.7% 0.127 320.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFA2FB

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  • #DAA748

    #DAA748

    oklch(75.8% 0.126 80.2)

  • #84C475

    #84C475

    oklch(75.8% 0.127 139.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA2FB

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  • #F09764

    #F09764

    oklch(75.7% 0.126 49.8)

  • #49CAA4

    #49CAA4

    oklch(75.8% 0.126 169.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA2FB

    #AFA2FB

    oklch(75.8% 0.126 289.7)

  • #F68E8F

    #F68E8F

    oklch(75.8% 0.126 19.9)

  • #B6B750

    #B6B750

    oklch(75.8% 0.126 109.6)

  • #16C8CF

    #16C8CF

    oklch(75.8% 0.126 199.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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