#AF21C5

Closest named color: Vibrant Purple (#AD03DE). oklch(55.5% 0.244 321.6), rgb(175, 33, 197).

Aa

White text reads best on this color (5.45:1).

About this color

#AF21C5 is a medium-dark, vivid purple. In OKLCH its lightness is 55%, its chroma 0.244 and its hue 322°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Vibrant Purple (#AD03DE), ΔE 0.043 away. White text reads best on it, at 5.45:1.

Hue familyPurples
Lightnessmedium-dark (55%)
Chromavivid (0.244)
Temperaturein between
Nearest nameVibrant Purple (#AD03DE)
Black text3.84:1
White text5.45:1

Values

HEX#AF21C5
RGBrgb(175, 33, 197)
HSLhsl(292, 71%, 45%)
OKLCHoklch(55.5% 0.244 321.6)

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 #AF21C5 5.45:1 AA Lc -81.0 Fine for body text
Black text on #AF21C5 3.84:1 AA large text Lc 28.5 Dividers and decoration only
#AF21C5 text on white 5.45:1 AA Lc 75.6 Fine for body text
#AF21C5 text on black 3.84:1 AA large text Lc -26.1 Dividers and decoration only

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

  1. Step 50

    50

    #FAF2FB

    oklch(97% 0.015 322.3)

  2. Step 100

    100

    #F4E3F7

    oklch(93.5% 0.032 321.1)

  3. Step 200

    200

    #EDCCF2

    oklch(88.5% 0.062 321.8)

  4. Step 300

    300

    #E2A9EB

    oklch(80.9% 0.11 321.8)

  5. Step 400

    400

    #D277E1

    oklch(70.8% 0.176 321.8)

  6. Step 500

    500

    #C44CD8

    oklch(63.1% 0.224 321.7)

  7. Step 600

    600 (this color)

    #AF21C5

    oklch(55.5% 0.244 321.6)

  8. Step 700

    700

    #970DAB

    oklch(49.2% 0.227 321.7)

  9. Step 800

    800

    #7A148A

    oklch(42.7% 0.187 321.5)

  10. Step 900

    900

    #631C6F

    oklch(37.8% 0.146 321.5)

  11. Step 950

    950

    #3A1241

    oklch(27% 0.093 321.4)

Export this scale for Tailwind in the Tailwind colors tool

#AF21C5 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)#0060C90.238
Deuteranopia (no green cones)#3B6EC20.217
Tritanopia (no blue cones)#B147760.147
Achromatopsia (no color)#6969690.246

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF21C5

    #AF21C5

    oklch(55.5% 0.244 321.6)

  • #158B00

    #158B00

    oklch(55.4% 0.185 141.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF21C5

    #AF21C5

    oklch(55.5% 0.244 321.6)

  • #7D42F2

    #7D42F2

    oklch(55.5% 0.244 291.7)

  • #CC0082

    #CC0082

    oklch(55.6% 0.231 351.6)

Open the analogous palette in the generator

Split complementary

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

  • #AF21C5

    #AF21C5

    oklch(55.5% 0.244 321.6)

  • #767900

    #767900

    oklch(55.5% 0.122 111.5)

  • #00876B

    #00876B

    oklch(55.5% 0.108 171.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF21C5

    #AF21C5

    oklch(55.5% 0.244 321.6)

  • #946B00

    #946B00

    oklch(55.5% 0.114 82)

  • #00838A

    #00838A

    oklch(55.5% 0.094 201.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF21C5

    #AF21C5

    oklch(55.5% 0.244 321.6)

  • #B25500

    #B25500

    oklch(55.5% 0.143 51.6)

  • #158B00

    #158B00

    oklch(55.4% 0.185 141.6)

  • #007DA9

    #007DA9

    oklch(55.4% 0.113 232)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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