#AB22A0#AB22A0

#AB22A0 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.214 H 331.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AB22A0
RGBrgb(171, 34, 160)
HSLhsl(305, 67%, 40%)
HSVhsv(305, 80%, 67%)
CMYKcmyk(0%, 80.1%, 6.4%, 32.9%)
CIE-LABlab(41.75, 65.82, -36.62)
CIE-LCHlch(41.75, 75.32, 330.91°)
OKLaboklab(52.64% 0.1888 -0.1009)
OKLCHoklch(52.64% 0.214 331.9)
XYZxyz(23.7118, 12.3421, 34.3843)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB22A0 #22AB2D
analogous
#7222AB #AB22A0 #AB225B
triadic
#AB22A0 #A0AB22 #22A0AB
tetradic
#AB22A0 #AB7222 #22AB2D #225BAB
square
#AB22A0 #AB7222 #22AB2D #225BAB
split-complementary
#AB22A0 #5BAB22 #22AB72
monochromatic
#450E40 #781870 #AB22A0 #D734C9 #E167D7

Accessibility & contrast

On white

6.06
#AB22A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB22A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB22A0
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB22A0#FFFFFF#000000##FFFFFF
##AB22A01.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1456A3
Deuteranopia (green-blind)
#51699D
Tritanopia (blue-blind)
#B23461
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab22a0;
/* rgb */ color: rgb(171, 34, 160);
/* oklch */ color: oklch(52.6% 0.214 331.9);
Tailwind
colors: {
  custom: {
    50: '#c86fbc',
    500: '#ab22a0',
    950: '#000000',
  },
}
SCSS
$custom: #ab22a0;
$custom-light: #c86fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab22a0",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 304.818,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.21403,
    "h": 331.9
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#AB22A0
secondary
#63C66B
accent
#EA4C3E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB22A0

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AB22A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva