#AFA7D8

Closest named color: Pale Purple (#B790D4). oklch(75.2% 0.07 292.1), rgb(175, 167, 216).

Aa

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

About this color

#AFA7D8 is a medium-light, moderately saturated purple. In OKLCH its lightness is 75%, its chroma 0.070 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Purple (#B790D4), ΔE 0.058 away. Black text reads best on it, at 9.34:1.

Hue familyPurples
Lightnessmedium-light (75%)
Chromamoderately saturated (0.070)
Temperaturein between
Nearest namePale Purple (#B790D4)
Black text9.34:1
White text2.24:1

Values

HEX#AFA7D8
RGBrgb(175, 167, 216)
HSLhsl(250, 39%, 75%)
OKLCHoklch(75.2% 0.07 292.1)

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 #AFA7D8 2.24:1 Fails Lc -49.1 Large or bold text, headings
Black text on #AFA7D8 9.34:1 AAA Lc 59.7 Large or bold text, headings
#AFA7D8 text on white 2.24:1 Fails Lc 44.3 Non-text elements, placeholder text
#AFA7D8 text on black 9.34:1 AAA Lc -57.8 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

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #EAE8F2

    oklch(93.5% 0.014 295.3)

  3. Step 200

    200

    #D9D7E8

    oklch(88.6% 0.023 291.3)

  4. Step 300

    300

    #C1BCDB

    oklch(80.9% 0.044 292.8)

  5. Step 400

    400 (this color)

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  6. Step 500

    500

    #8A7FBB

    oklch(63% 0.09 292)

  7. Step 600

    600

    #7568A8

    oklch(55.6% 0.098 292.2)

  8. Step 700

    700

    #625690

    oklch(49% 0.092 292.2)

  9. Step 800

    800

    #504775

    oklch(42.8% 0.075 291.9)

  10. Step 900

    900

    #423C5E

    oklch(37.8% 0.058 291.5)

  11. Step 950

    950

    #272337

    oklch(27% 0.037 292.9)

Export this scale for Tailwind in the Tailwind colors tool

#AFA7D8 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)#9CAEDA0.029
Deuteranopia (no green cones)#9CACD70.028
Tritanopia (no blue cones)#A7AFB80.059
Achromatopsia (no color)#ADADAD0.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFA7D8

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  • #AFB480

    #AFB480

    oklch(75.3% 0.071 112.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFA7D8

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  • #97AFDC

    #97AFDC

    oklch(75.2% 0.07 262.8)

  • #C4A0C9

    #C4A0C9

    oklch(75.1% 0.07 322.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFA7D8

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  • #C5AB7B

    #C5AB7B

    oklch(75.2% 0.071 82.5)

  • #96BA91

    #96BA91

    oklch(75.1% 0.07 141.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFA7D8

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  • #D3A386

    #D3A386

    oklch(75.3% 0.07 52.5)

  • #80BDAA

    #80BDAA

    oklch(75.1% 0.069 172.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFA7D8

    #AFA7D8

    oklch(75.2% 0.07 292.1)

  • #D89D9B

    #D89D9B

    oklch(75.2% 0.071 21.1)

  • #AFB480

    #AFB480

    oklch(75.3% 0.071 112.6)

  • #77BCC2

    #77BCC2

    oklch(75.2% 0.07 202.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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