#AB20B1#AB20B1

#AB20B1 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.228 H 326.3°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AB20B1
RGBrgb(171, 32, 177)
HSLhsl(298, 69%, 41%)
HSVhsv(298, 82%, 69%)
CMYKcmyk(3.4%, 81.9%, 0%, 30.6%)
CIE-LABlab(42.56, 68.98, -45.47)
CIE-LCHlch(42.56, 82.62, 326.61°)
OKLaboklab(53.53% 0.1896 -0.1266)
OKLCHoklch(53.53% 0.228 326.3)
XYZxyz(25.2464, 12.8671, 42.7403)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB20B1 #26B120
analogous
#6220B1 #AB20B1 #B1206E
triadic
#AB20B1 #B1AB20 #20B1AB
tetradic
#AB20B1 #B16220 #26B120 #206EB1
square
#AB20B1 #B16220 #26B120 #206EB1
split-complementary
#AB20B1 #6EB120 #20B162
monochromatic
#470D49 #79177D #AB20B1 #D334DA #DF68E4

Accessibility & contrast

On white

5.88
#AB20B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB20B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB20B1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB20B1#FFFFFF#000000##FFFFFF
##AB20B11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#B03D6A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab20b1;
/* rgb */ color: rgb(171, 32, 177);
/* oklch */ color: oklch(53.5% 0.228 326.3);
Tailwind
colors: {
  custom: {
    50: '#c86fc9',
    500: '#ab20b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab20b1;
$custom-light: #c86fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab20b1",
  "rgb": {
    "r": 171,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 297.517,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53528,
    "c": 0.22796,
    "h": 326.3
  },
  "luminance": 0.12865
}

Semantic roles & 50–950 ramp

primary
#AB20B1
secondary
#68C964
accent
#EC3C43
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AB20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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