#AF7CEF

Closest named color: Light Purple (#BF77F6). oklch(68.5% 0.169 302.7), rgb(175, 124, 239).

Aa

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

About this color

#AF7CEF is a medium-light, vivid purple. In OKLCH its lightness is 69%, its chroma 0.169 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Purple (#BF77F6), ΔE 0.030 away. Black text reads best on it, at 6.95:1.

Hue familyPurples
Lightnessmedium-light (69%)
Chromavivid (0.169)
Temperaturein between
Nearest nameLight Purple (#BF77F6)
Black text6.95:1
White text3.02:1

Values

HEX#AF7CEF
RGBrgb(175, 124, 239)
HSLhsl(267, 78%, 71%)
OKLCHoklch(68.5% 0.169 302.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 #AF7CEF 3.02:1 AA large text Lc -62.1 Content text, not long reading
Black text on #AF7CEF 6.95:1 AA Lc 47.3 Large or bold text, headings
#AF7CEF text on white 3.02:1 AA large text Lc 56.7 Large or bold text, headings
#AF7CEF text on black 6.95:1 AA Lc -45.1 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

    #F7F3FE

    oklch(97% 0.015 302.6)

  2. Step 100

    100

    #EEE5FB

    oklch(93.5% 0.031 304.3)

  3. Step 200

    200

    #E0D0FA

    oklch(88.4% 0.059 302.5)

  4. Step 300

    300

    #CEB0F9

    oklch(80.9% 0.106 302.9)

  5. Step 400

    400 (this color)

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  6. Step 500

    500

    #A55DF3

    oklch(63.1% 0.217 302.7)

  7. Step 600

    600

    #913CE1

    oklch(55.7% 0.235 302.8)

  8. Step 700

    700

    #7B2BC4

    oklch(49.1% 0.219 302.4)

  9. Step 800

    800

    #64279E

    oklch(42.7% 0.181 302.6)

  10. Step 900

    900

    #51277E

    oklch(37.7% 0.141 302.2)

  11. Step 950

    950

    #2F184A

    oklch(27% 0.09 301.9)

Export this scale for Tailwind in the Tailwind colors tool

#AF7CEF 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)#5993F30.120
Deuteranopia (no green cones)#6694EC0.111
Tritanopia (no blue cones)#A391AA0.130
Achromatopsia (no color)#9494940.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF7CEF

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  • #88A900

    #88A900

    oklch(68.5% 0.167 122.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF7CEF

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  • #798FFF

    #798FFF

    oklch(68.5% 0.166 272.9)

  • #D56DC7

    #D56DC7

    oklch(68.5% 0.17 332.5)

Open the analogous palette in the generator

Split complementary

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

  • #AF7CEF

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  • #B89600

    #B89600

    oklch(68.4% 0.14 92.6)

  • #20B764

    #20B764

    oklch(68.6% 0.17 152.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF7CEF

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  • #DC8000

    #DC8000

    oklch(68.5% 0.157 62.7)

  • #00B2A0

    #00B2A0

    oklch(68.5% 0.123 182.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF7CEF

    #AF7CEF

    oklch(68.5% 0.169 302.7)

  • #F06B51

    #F06B51

    oklch(68.6% 0.17 32.8)

  • #88A900

    #88A900

    oklch(68.5% 0.167 122.5)

  • #00ACC5

    #00ACC5

    oklch(68.4% 0.12 212.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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