#AFA7E6

Closest named color: Pale Violet (#CEAEFA). oklch(75.8% 0.09 289.9), rgb(175, 167, 230).

Aa

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

About this color

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

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

Values

HEX#AFA7E6
RGBrgb(175, 167, 230)
HSLhsl(248, 56%, 78%)
OKLCHoklch(75.8% 0.09 289.9)

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 #AFA7E6 2.21:1 Fails Lc -48.3 Large or bold text, headings
Black text on #AFA7E6 9.49:1 AAA Lc 60.4 Content text, not long reading
#AFA7E6 text on white 2.21:1 Fails Lc 43.5 Non-text elements, placeholder text
#AFA7E6 text on black 9.49: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 400.

  1. Step 50

    50

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E9E8F4

    oklch(93.5% 0.016 289.9)

  3. Step 200

    200

    #D8D6ED

    oklch(88.5% 0.031 289.7)

  4. Step 300

    300

    #BFBBE3

    oklch(80.8% 0.056 289.7)

  5. Step 400

    400 (this color)

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  6. Step 500

    500

    #897DCA

    oklch(63.2% 0.114 289.9)

  7. Step 600

    600

    #7364B7

    oklch(55.5% 0.126 290)

  8. Step 700

    700

    #61539D

    oklch(49.1% 0.116 290.2)

  9. Step 800

    800

    #4F447F

    oklch(42.6% 0.096 290.3)

  10. Step 900

    900

    #413A66

    oklch(37.7% 0.074 289.7)

  11. Step 950

    950

    #26223C

    oklch(27% 0.048 289.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7E6 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)#97B0E90.037
Deuteranopia (no green cones)#97ADE40.035
Tritanopia (no blue cones)#A3B2BD0.077
Achromatopsia (no color)#AEAEAE0.090

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7E6

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  • #B4B672

    #B4B672

    oklch(75.9% 0.09 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7E6

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  • #8FB2EA

    #8FB2EA

    oklch(75.9% 0.09 259.6)

  • #CA9ED4

    #CA9ED4

    oklch(75.8% 0.09 320)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7E6

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  • #CFAA6D

    #CFAA6D

    oklch(75.8% 0.09 79.3)

  • #92BF88

    #92BF88

    oklch(75.8% 0.091 140)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7E6

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  • #DFA07D

    #DFA07D

    oklch(75.8% 0.089 50)

  • #72C3A8

    #72C3A8

    oklch(75.7% 0.09 170.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7E6

    #AFA7E6

    oklch(75.8% 0.09 289.9)

  • #E49999

    #E49999

    oklch(75.7% 0.09 19.4)

  • #B4B672

    #B4B672

    oklch(75.9% 0.09 109.8)

  • #63C2C7

    #63C2C7

    oklch(75.8% 0.09 200)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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