#AB20BC#AB20BC

#AB20BC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.236 H 322.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB20BC
RGBrgb(171, 32, 188)
HSLhsl(293, 71%, 43%)
HSVhsv(293, 83%, 74%)
CMYKcmyk(9%, 83%, 0%, 26.3%)
CIE-LABlab(43.25, 70.81, -50.85)
CIE-LCHlch(43.25, 87.18, 324.31°)
OKLaboklab(54.23% 0.1884 -0.1424)
OKLCHoklch(54.23% 0.236 322.9)
XYZxyz(26.3873, 13.3234, 48.7490)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB20BC #31BC20
analogous
#5D20BC #AB20BC #BC207F
triadic
#AB20BC #BCAB20 #20BCAB
tetradic
#AB20BC #BC5D20 #31BC20 #207FBC
square
#AB20BC #BC5D20 #31BC20 #207FBC
split-complementary
#AB20BC #7FBC20 #20BC5D
monochromatic
#4C0E53 #7B1788 #AB20BC #CC3BDE #DA70E7

Accessibility & contrast

On white

5.73
#AB20BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB20BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB20BC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB20BC#FFFFFF#000000##FFFFFF
##AB20BC1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#AD4371
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab20bc;
/* rgb */ color: rgb(171, 32, 188);
/* oklch */ color: oklch(54.2% 0.236 322.9);
Tailwind
colors: {
  custom: {
    50: '#c870d1',
    500: '#ab20bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab20bc;
$custom-light: #c870d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab20bc",
  "rgb": {
    "r": 171,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 293.462,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54229,
    "c": 0.23617,
    "h": 322.9
  },
  "luminance": 0.13322
}

Semantic roles & 50–950 ramp

primary
#AB20BC
secondary
#75CD6B
accent
#EE3A4E
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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