#AFA8EA

Closest named color: Pale Violet (#CEAEFA). oklch(76.1% 0.094 288.8), rgb(175, 168, 234).

Aa

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

About this color

#AFA8EA is a medium-light, moderately saturated purple. In OKLCH its lightness is 76%, its chroma 0.094 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Pale Violet (#CEAEFA), ΔE 0.054 away. Black text reads best on it, at 9.61:1.

Hue familyPurples
Lightnessmedium-light (76%)
Chromamoderately saturated (0.094)
Temperaturecool
Nearest namePale Violet (#CEAEFA)
Black text9.61:1
White text2.18:1

Values

HEX#AFA8EA
RGBrgb(175, 168, 234)
HSLhsl(246, 61%, 79%)
OKLCHoklch(76.1% 0.094 288.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 #AFA8EA 2.18:1 Fails Lc -47.7 Large or bold text, headings
Black text on #AFA8EA 9.61:1 AAA Lc 61.0 Content text, not long reading
#AFA8EA text on white 2.18:1 Fails Lc 43.0 Non-text elements, placeholder text
#AFA8EA text on black 9.61:1 AAA Lc -59.2 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

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #E9E7FC

    oklch(93.6% 0.028 290.2)

  3. Step 200

    200

    #D7D4FA

    oklch(88.4% 0.052 288.9)

  4. Step 300

    300 (this color)

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  5. Step 400

    400

    #9E8FF8

    oklch(70.7% 0.15 288.5)

  6. Step 500

    500

    #896EF4

    oklch(63% 0.193 288.9)

  7. Step 600

    600

    #7552E3

    oklch(55.7% 0.209 288.9)

  8. Step 700

    700

    #6241C5

    oklch(49.1% 0.194 288.6)

  9. Step 800

    800

    #50379F

    oklch(42.7% 0.16 288.8)

  10. Step 900

    900

    #42317E

    oklch(37.7% 0.125 289.2)

  11. Step 950

    950

    #261E4A

    oklch(27.1% 0.079 288.4)

Export this scale for Tailwind in the Tailwind colors tool

#AFA8EA 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)#97B1ED0.036
Deuteranopia (no green cones)#96AEE80.036
Tritanopia (no blue cones)#A2B3BF0.080
Achromatopsia (no color)#AFAFAF0.094

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA8EA

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  • #B6B76F

    #B6B76F

    oklch(76.2% 0.094 109.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA8EA

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  • #8DB3ED

    #8DB3ED

    oklch(76.1% 0.094 258.7)

  • #CB9FD8

    #CB9FD8

    oklch(76.2% 0.093 318.4)

Open the analogous palette in the generator

Split complementary

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

  • #AFA8EA

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  • #D2AB6B

    #D2AB6B

    oklch(76.2% 0.094 79)

  • #93C086

    #93C086

    oklch(76.1% 0.094 138.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA8EA

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  • #E3A07C

    #E3A07C

    oklch(76.2% 0.094 49.1)

  • #71C5A7

    #71C5A7

    oklch(76.1% 0.094 168.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA8EA

    #AFA8EA

    oklch(76.1% 0.094 288.8)

  • #E7999A

    #E7999A

    oklch(76.1% 0.094 18.6)

  • #B6B76F

    #B6B76F

    oklch(76.2% 0.094 109.1)

  • #5FC4C8

    #5FC4C8

    oklch(76.2% 0.094 198.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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