#AF8AFA

Closest named color: Liliac (#C48EFD). oklch(71.4% 0.161 297.4), rgb(175, 138, 250).

Aa

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

About this color

#AF8AFA is a medium-light, vivid purple. In OKLCH its lightness is 71%, its chroma 0.161 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.83:1.

Hue familyPurples
Lightnessmedium-light (71%)
Chromavivid (0.161)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.83:1
White text2.67:1

Values

HEX#AF8AFA
RGBrgb(175, 138, 250)
HSLhsl(260, 92%, 76%)
OKLCHoklch(71.4% 0.161 297.4)

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 #AF8AFA 2.67:1 Fails Lc -57.1 Large or bold text, headings
Black text on #AF8AFA 7.83:1 AAA Lc 52.1 Large or bold text, headings
#AF8AFA text on white 2.67:1 Fails Lc 51.9 Large or bold text, headings
#AF8AFA text on black 7.83:1 AAA Lc -50.0 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

    #ECE6FC

    oklch(93.6% 0.03 298.3)

  3. Step 200

    200

    #DDD2FA

    oklch(88.5% 0.056 297.8)

  4. Step 300

    300

    #C8B3FA

    oklch(80.9% 0.101 297.7)

  5. Step 400

    400 (this color)

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  6. Step 500

    500

    #9A64F4

    oklch(63% 0.207 297.4)

  7. Step 600

    600

    #8645E3

    oklch(55.6% 0.225 297.3)

  8. Step 700

    700

    #7235C5

    oklch(49.1% 0.209 297.4)

  9. Step 800

    800

    #5D2E9F

    oklch(42.8% 0.172 297.6)

  10. Step 900

    900

    #4B2B7E

    oklch(37.6% 0.134 297.3)

  11. Step 950

    950

    #2C1A4A

    oklch(27% 0.086 297.6)

Export this scale for Tailwind in the Tailwind colors tool

#AF8AFA 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)#679EFE0.099
Deuteranopia (no green cones)#6F9DF70.093
Tritanopia (no blue cones)#9F9EB60.128
Achromatopsia (no color)#9E9E9E0.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF8AFA

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  • #9CAF12

    #9CAF12

    oklch(71.5% 0.162 117.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF8AFA

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  • #7A9EFF

    #7A9EFF

    oklch(71.5% 0.147 267.3)

  • #D77BD6

    #D77BD6

    oklch(71.4% 0.161 327.5)

Open the analogous palette in the generator

Split complementary

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

  • #AF8AFA

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  • #C99C00

    #C99C00

    oklch(71.5% 0.146 87.9)

  • #50BD64

    #50BD64

    oklch(71.4% 0.161 147.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF8AFA

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  • #EC8522

    #EC8522

    oklch(71.5% 0.161 57.6)

  • #00BDA2

    #00BDA2

    oklch(71.4% 0.132 177.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF8AFA

    #AF8AFA

    oklch(71.4% 0.161 297.4)

  • #F77669

    #F77669

    oklch(71.5% 0.161 27.7)

  • #9CAF12

    #9CAF12

    oklch(71.5% 0.162 117.4)

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

Similar named colors

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

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