#AF51FA

Closest named color: Lighter Purple (#A55AF4). oklch(63.2% 0.242 306.1), rgb(175, 81, 250).

Aa

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

About this color

#AF51FA is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.242 and its hue 306°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Lighter Purple (#A55AF4), ΔE 0.024 away. Black text reads best on it, at 5.38:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.242)
Temperaturein between
Nearest nameLighter Purple (#A55AF4)
Black text5.38:1
White text3.90:1

Values

HEX#AF51FA
RGBrgb(175, 81, 250)
HSLhsl(273, 94%, 65%)
OKLCHoklch(63.2% 0.242 306.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 #AF51FA 3.90:1 AA large text Lc -71.2 Content text, not long reading
Black text on #AF51FA 5.38:1 AA Lc 38.4 Non-text elements, placeholder text
#AF51FA text on white 3.90:1 AA large text Lc 65.7 Content text, not long reading
#AF51FA text on black 5.38:1 AA Lc -36.0 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #F8F3FE

    oklch(97.1% 0.015 306.4)

  2. Step 100

    100

    #EFE4FD

    oklch(93.5% 0.035 305.5)

  3. Step 200

    200

    #E4CFFC

    oklch(88.6% 0.065 306.2)

  4. Step 300

    300

    #D4ACFD

    oklch(80.9% 0.119 306.5)

  5. Step 400

    400

    #BE7CFC

    oklch(70.7% 0.189 306)

  6. Step 500

    500 (this color)

    #AF51FA

    oklch(63.2% 0.242 306.1)

  7. Step 600

    600

    #9B26E8

    oklch(55.6% 0.263 306.2)

  8. Step 700

    700

    #8411CA

    oklch(49% 0.244 306)

  9. Step 800

    800

    #6B17A3

    oklch(42.6% 0.202 306)

  10. Step 900

    900

    #571E82

    oklch(37.7% 0.158 306)

  11. Step 950

    950

    #33144C

    oklch(27% 0.1 306.2)

Export this scale for Tailwind in the Tailwind colors tool

#AF51FA 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)#007EFF0.194
Deuteranopia (no green cones)#1A81F60.191
Tritanopia (no blue cones)#A277A00.172
Achromatopsia (no color)#8181810.244

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF51FA

    #AF51FA

    oklch(63.2% 0.242 306.1)

  • #719A00

    #719A00

    oklch(63.2% 0.161 126.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF51FA

    #AF51FA

    oklch(63.2% 0.242 306.1)

  • #6D77FF

    #6D77FF

    oklch(63.2% 0.199 275.9)

  • #DC36C0

    #DC36C0

    oklch(63.3% 0.242 336)

Open the analogous palette in the generator

Split complementary

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

  • #AF51FA

    #AF51FA

    oklch(63.2% 0.242 306.1)

  • #A18800

    #A18800

    oklch(63.1% 0.13 96)

  • #00A461

    #00A461

    oklch(63.2% 0.153 156.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF51FA

    #AF51FA

    oklch(63.2% 0.242 306.1)

  • #C27500

    #C27500

    oklch(63.2% 0.141 65.8)

  • #009F94

    #009F94

    oklch(63.2% 0.111 186.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF51FA

    #AF51FA

    oklch(63.2% 0.242 306.1)

  • #EF4300

    #EF4300

    oklch(63.1% 0.216 36)

  • #719A00

    #719A00

    oklch(63.2% 0.161 126.2)

  • #009AB5

    #009AB5

    oklch(63.2% 0.112 216)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #AF51FA.

Similar named colors

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

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