#AF97F3

Closest named color: Liliac (#C48EFD). oklch(73.4% 0.132 294.9), rgb(175, 151, 243).

Aa

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

About this color

#AF97F3 is a medium-light, moderately saturated purple. In OKLCH its lightness is 73%, its chroma 0.132 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.54:1.

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

Values

HEX#AF97F3
RGBrgb(175, 151, 243)
HSLhsl(256, 79%, 77%)
OKLCHoklch(73.4% 0.132 294.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 #AF97F3 2.45:1 Fails Lc -53.3 Large or bold text, headings
Black text on #AF97F3 8.54:1 AAA Lc 55.8 Large or bold text, headings
#AF97F3 text on white 2.45:1 Fails Lc 48.2 Large or bold text, headings
#AF97F3 text on black 8.54: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

    #EBE7F9

    oklch(93.6% 0.024 296.1)

  3. Step 200

    200

    #DBD4F5

    oklch(88.6% 0.046 295.2)

  4. Step 300

    300

    #C4B7F1

    oklch(81% 0.082 294.8)

  5. Step 400

    400 (this color)

    #AF97F3

    oklch(73.4% 0.132 294.9)

  6. Step 500

    500

    #9270E3

    oklch(63.1% 0.168 294.7)

  7. Step 600

    600

    #7E55D1

    oklch(55.6% 0.183 295)

  8. Step 700

    700

    #6A44B5

    oklch(49% 0.171 294.8)

  9. Step 800

    800

    #573993

    oklch(42.8% 0.142 295.1)

  10. Step 900

    900

    #473275

    oklch(37.7% 0.111 295)

  11. Step 950

    950

    #291E44

    oklch(26.9% 0.069 294.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF97F3 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)#7EA6F70.070
Deuteranopia (no green cones)#81A4F10.067
Tritanopia (no blue cones)#A1A7BA0.107
Achromatopsia (no color)#A5A5A50.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF97F3

    #AF97F3

    oklch(73.4% 0.132 294.9)

  • #A7B247

    #A7B247

    oklch(73.4% 0.131 114.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF97F3

    #AF97F3

    oklch(73.4% 0.132 294.9)

  • #80A6FC

    #80A6FC

    oklch(73.3% 0.132 265.2)

  • #D28BD7

    #D28BD7

    oklch(73.4% 0.132 324.5)

Open the analogous palette in the generator

Split complementary

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

  • #AF97F3

    #AF97F3

    oklch(73.4% 0.132 294.9)

  • #CFA135

    #CFA135

    oklch(73.3% 0.132 84.6)

  • #70BF73

    #70BF73

    oklch(73.5% 0.133 144.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF97F3

    #AF97F3

    oklch(73.4% 0.132 294.9)

  • #E89151

    #E89151

    oklch(73.4% 0.132 55.2)

  • #23C3A4

    #23C3A4

    oklch(73.3% 0.132 175.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF97F3

    #AF97F3

    oklch(73.4% 0.132 294.9)

  • #F1867E

    #F1867E

    oklch(73.5% 0.132 25.3)

  • #A7B247

    #A7B247

    oklch(73.4% 0.131 114.6)

  • #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 #AF97F3, closest first.

Similar named colors

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

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