#AF8AFE

Closest named color: Liliac (#C48EFD). oklch(71.6% 0.167 296.7), rgb(175, 138, 254).

Aa

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

About this color

#AF8AFE is a medium-light, vivid purple. In OKLCH its lightness is 72%, its chroma 0.167 and its hue 297°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.036 away. Black text reads best on it, at 7.88:1.

Hue familyPurples
Lightnessmedium-light (72%)
Chromavivid (0.167)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.88:1
White text2.66:1

Values

HEX#AF8AFE
RGBrgb(175, 138, 254)
HSLhsl(259, 98%, 77%)
OKLCHoklch(71.6% 0.167 296.7)

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 #AF8AFE 2.66:1 Fails Lc -56.8 Large or bold text, headings
Black text on #AF8AFE 7.88:1 AAA Lc 52.4 Large or bold text, headings
#AF8AFE text on white 2.66:1 Fails Lc 51.6 Large or bold text, headings
#AF8AFE text on black 7.88:1 AAA Lc -50.3 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EBE6FC

    oklch(93.5% 0.03 296.2)

  3. Step 200

    200

    #DCD2FC

    oklch(88.5% 0.058 296.1)

  4. Step 300

    300

    #C7B3FC

    oklch(80.9% 0.103 296.6)

  5. Step 400

    400 (this color)

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  6. Step 500

    500

    #9A63F8

    oklch(63.2% 0.213 296.9)

  7. Step 600

    600

    #8643E7

    oklch(55.7% 0.232 296.8)

  8. Step 700

    700

    #7233C9

    oklch(49.2% 0.215 296.7)

  9. Step 800

    800

    #5C2CA2

    oklch(42.7% 0.178 296.6)

  10. Step 900

    900

    #4B2A81

    oklch(37.7% 0.139 296.6)

  11. Step 950

    950

    #2C1A4B

    oklch(27% 0.087 297.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF8AFE 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)#659FFF0.102
Deuteranopia (no green cones)#6C9DFB0.095
Tritanopia (no blue cones)#9EA0B80.133
Achromatopsia (no color)#9F9F9F0.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF8AFE

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  • #9EAF00

    #9EAF00

    oklch(71.6% 0.164 116.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF8AFE

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  • #7A9FFF

    #7A9FFF

    oklch(71.7% 0.146 266.8)

  • #D87ADA

    #D87ADA

    oklch(71.6% 0.167 326.4)

Open the analogous palette in the generator

Split complementary

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

  • #AF8AFE

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  • #CB9C00

    #CB9C00

    oklch(71.7% 0.147 86.9)

  • #4FBE61

    #4FBE61

    oklch(71.5% 0.166 146.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF8AFE

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  • #EF831B

    #EF831B

    oklch(71.6% 0.167 56.5)

  • #00BEA1

    #00BEA1

    oklch(71.6% 0.133 176.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF8AFE

    #AF8AFE

    oklch(71.6% 0.167 296.7)

  • #FA7469

    #FA7469

    oklch(71.6% 0.166 26.8)

  • #9EAF00

    #9EAF00

    oklch(71.6% 0.164 116.5)

  • #00B8CA

    #00B8CA

    oklch(71.5% 0.123 207.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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