#AB20A1#AB20A1

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

Color values

HEX#AB20A1
RGBrgb(171, 32, 161)
HSLhsl(304, 68%, 40%)
HSVhsv(304, 81%, 67%)
CMYKcmyk(0%, 81.3%, 5.8%, 32.9%)
CIE-LABlab(41.64, 66.47, -37.41)
CIE-LCHlch(41.64, 76.27, 330.63°)
OKLaboklab(52.57% 0.1902 -0.1032)
OKLCHoklch(52.57% 0.216 331.5)
XYZxyz(23.7442, 12.2662, 34.8284)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB20A1 #20AB2A
analogous
#7020AB #AB20A1 #AB205B
triadic
#AB20A1 #A1AB20 #20A1AB
tetradic
#AB20A1 #AB7020 #20AB2A #205BAB
square
#AB20A1 #AB7020 #20AB2A #205BAB
split-complementary
#AB20A1 #5BAB20 #20AB70
monochromatic
#440D40 #771670 #AB20A1 #D830CC #E263D9

Accessibility & contrast

On white

6.08
#AB20A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB20A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB20A1
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB20A1#FFFFFF#000000##FFFFFF
##AB20A11.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D56A4
Deuteranopia (green-blind)
#50699E
Tritanopia (blue-blind)
#B23461
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab20a1;
/* rgb */ color: rgb(171, 32, 161);
/* oklch */ color: oklch(52.6% 0.216 331.5);
Tailwind
colors: {
  custom: {
    50: '#c86ebd',
    500: '#ab20a1',
    950: '#000000',
  },
}
SCSS
$custom: #ab20a1;
$custom-light: #c86ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab20a1",
  "rgb": {
    "r": 171,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 304.317,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.21639,
    "h": 331.5
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#AB20A1
secondary
#60C767
accent
#EB493C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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