#AF97F2

Closest named color: Liliac (#C48EFD). oklch(73.3% 0.131 295.1), rgb(175, 151, 242).

Aa

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

About this color

#AF97F2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 73%, its chroma 0.131 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.042 away. Black text reads best on it, at 8.53:1.

Hue familyPurples
Lightnessmedium-light (73%)
Chromamoderately saturated (0.131)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text8.53:1
White text2.46:1

Values

HEX#AF97F2
RGBrgb(175, 151, 242)
HSLhsl(256, 78%, 77%)
OKLCHoklch(73.3% 0.131 295.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 #AF97F2 2.46:1 Fails Lc -53.3 Large or bold text, headings
Black text on #AF97F2 8.53:1 AAA Lc 55.7 Large or bold text, headings
#AF97F2 text on white 2.46:1 Fails Lc 48.3 Large or bold text, headings
#AF97F2 text on black 8.53:1 AAA Lc -53.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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EBE7F8

    oklch(93.6% 0.023 296.7)

  3. Step 200

    200

    #DBD4F5

    oklch(88.6% 0.046 295.2)

  4. Step 300

    300

    #C4B7F0

    oklch(81% 0.081 295)

  5. Step 400

    400 (this color)

    #AF97F2

    oklch(73.3% 0.131 295.1)

  6. Step 500

    500

    #9370E2

    oklch(63.1% 0.167 295.4)

  7. Step 600

    600

    #7E55D0

    oklch(55.6% 0.182 295.2)

  8. Step 700

    700

    #6B45B4

    oklch(49.2% 0.168 295.3)

  9. Step 800

    800

    #573992

    oklch(42.7% 0.141 295.4)

  10. Step 900

    900

    #473274

    oklch(37.6% 0.109 295.3)

  11. Step 950

    950

    #291E44

    oklch(26.9% 0.069 294.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF97F2 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)#7EA6F60.070
Deuteranopia (no green cones)#82A4F00.066
Tritanopia (no blue cones)#A1A7B90.107
Achromatopsia (no color)#A5A5A50.131

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF97F2

    #AF97F2

    oklch(73.3% 0.131 295.1)

  • #A6B248

    #A6B248

    oklch(73.3% 0.131 115.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF97F2

    #AF97F2

    oklch(73.3% 0.131 295.1)

  • #80A6FB

    #80A6FB

    oklch(73.3% 0.131 265)

  • #D28BD6

    #D28BD6

    oklch(73.4% 0.131 325)

Open the analogous palette in the generator

Split complementary

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

  • #AF97F2

    #AF97F2

    oklch(73.3% 0.131 295.1)

  • #CEA136

    #CEA136

    oklch(73.2% 0.131 85)

  • #70BE74

    #70BE74

    oklch(73.2% 0.131 145.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF97F2

    #AF97F2

    oklch(73.3% 0.131 295.1)

  • #E79152

    #E79152

    oklch(73.3% 0.131 55.2)

  • #26C3A4

    #26C3A4

    oklch(73.3% 0.131 175)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF97F2

    #AF97F2

    oklch(73.3% 0.131 295.1)

  • #F0867E

    #F0867E

    oklch(73.4% 0.131 25.3)

  • #A6B248

    #A6B248

    oklch(73.3% 0.131 115.1)

  • #00BFCE

    #00BFCE

    oklch(73.4% 0.125 204.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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