#AB20A0#AB20A0

#AB20A0 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.216 H 331.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AB20A0
RGBrgb(171, 32, 160)
HSLhsl(305, 68%, 40%)
HSVhsv(305, 81%, 67%)
CMYKcmyk(0%, 81.3%, 6.4%, 32.9%)
CIE-LABlab(41.58, 66.32, -36.89)
CIE-LCHlch(41.58, 75.89, 330.91°)
OKLaboklab(52.52% 0.1902 -0.1017)
OKLCHoklch(52.52% 0.216 331.9)
XYZxyz(23.6563, 12.2310, 34.3658)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB20A0 #20AB2B
analogous
#7020AB #AB20A0 #AB205B
triadic
#AB20A0 #A0AB20 #20A0AB
tetradic
#AB20A0 #AB7020 #20AB2B #205BAB
square
#AB20A0 #AB7020 #20AB2B #205BAB
split-complementary
#AB20A0 #5BAB20 #20AB70
monochromatic
#440D40 #771670 #AB20A0 #D830CB #E263D8

Accessibility & contrast

On white

6.09
#AB20A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB20A0
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB20A0#FFFFFF#000000##FFFFFF
##AB20A01.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab20a0;
/* rgb */ color: rgb(171, 32, 160);
/* oklch */ color: oklch(52.5% 0.216 331.9);
Tailwind
colors: {
  custom: {
    50: '#c86ebc',
    500: '#ab20a0',
    950: '#000000',
  },
}
SCSS
$custom: #ab20a0;
$custom-light: #c86ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab20a0",
  "rgb": {
    "r": 171,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 304.748,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.21569,
    "h": 331.9
  },
  "luminance": 0.12229
}

Semantic roles & 50–950 ramp

primary
#AB20A0
secondary
#60C768
accent
#EB4A3C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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