#AB22CF

Closest named color: Vibrant Purple (#AD03DE). oklch(55.6% 0.249 317.6), rgb(171, 34, 207).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.249)
Temperaturein between
Nearest nameVibrant Purple (#AD03DE)
Black text3.86:1
White text5.43:1

Values

HEX#AB22CF
RGBrgb(171, 34, 207)
HSLhsl(288, 72%, 47%)
OKLCHoklch(55.6% 0.249 317.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 #AB22CF 5.43:1 AA Lc -80.9 Fine for body text
Black text on #AB22CF 3.86:1 AA large text Lc 28.6 Dividers and decoration only
#AB22CF text on white 5.43:1 AA Lc 75.5 Fine for body text
#AB22CF text on black 3.86:1 AA large text Lc -26.2 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

    #FAF2FC

    oklch(97% 0.016 319.4)

  2. Step 100

    100

    #F3E4F8

    oklch(93.7% 0.031 317.7)

  3. Step 200

    200

    #EBCDF5

    oklch(88.6% 0.063 317.6)

  4. Step 300

    300

    #DFAAF0

    oklch(81% 0.112 317.8)

  5. Step 400

    400

    #CD78E8

    oklch(70.7% 0.178 317.6)

  6. Step 500

    500

    #BF4CE1

    oklch(63% 0.23 317.6)

  7. Step 600

    600 (this color)

    #AB22CF

    oklch(55.6% 0.249 317.6)

  8. Step 700

    700

    #930DB3

    oklch(49.2% 0.232 317.8)

  9. Step 800

    800

    #771491

    oklch(42.7% 0.192 317.6)

  10. Step 900

    900

    #601C74

    oklch(37.7% 0.15 317.3)

  11. Step 950

    950

    #381344

    oklch(27% 0.094 316.9)

Export this scale for Tailwind in the Tailwind colors tool

#AB22CF 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)#0062D30.228
Deuteranopia (no green cones)#286DCB0.220
Tritanopia (no blue cones)#A94D7C0.156
Achromatopsia (no color)#6A6A6A0.251

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB22CF

    #AB22CF

    oklch(55.6% 0.249 317.6)

  • #388900

    #388900

    oklch(55.7% 0.171 137.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB22CF

    #AB22CF

    oklch(55.6% 0.249 317.6)

  • #7544F9

    #7544F9

    oklch(55.6% 0.25 287.7)

  • #CA008C

    #CA008C

    oklch(55.6% 0.234 347.5)

Open the analogous palette in the generator

Split complementary

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

  • #AB22CF

    #AB22CF

    oklch(55.6% 0.249 317.6)

  • #7B7800

    #7B7800

    oklch(55.7% 0.12 108)

  • #008866

    #008866

    oklch(55.6% 0.113 167.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB22CF

    #AB22CF

    oklch(55.6% 0.249 317.6)

  • #986900

    #986900

    oklch(55.6% 0.116 77.9)

  • #008487

    #008487

    oklch(55.6% 0.095 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB22CF

    #AB22CF

    oklch(55.6% 0.249 317.6)

  • #B85000

    #B85000

    oklch(55.7% 0.153 47.4)

  • #388900

    #388900

    oklch(55.7% 0.171 137.7)

  • #007FA5

    #007FA5

    oklch(55.7% 0.108 227.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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