#AB21BC#AB21BC

#AB21BC is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.235 H 322.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB21BC
RGBrgb(171, 33, 188)
HSLhsl(293, 70%, 43%)
HSVhsv(293, 82%, 74%)
CMYKcmyk(9%, 82.4%, 0%, 26.3%)
CIE-LABlab(43.33, 70.57, -50.72)
CIE-LCHlch(43.33, 86.91, 324.29°)
OKLaboklab(54.29% 0.1878 -0.142)
OKLCHoklch(54.29% 0.235 322.9)
XYZxyz(26.4147, 13.3781, 48.7581)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB21BC #32BC21
analogous
#5D21BC #AB21BC #BC217F
triadic
#AB21BC #BCAB21 #21BCAB
tetradic
#AB21BC #BC5D21 #32BC21 #217FBC
square
#AB21BC #BC5D21 #32BC21 #217FBC
split-complementary
#AB21BC #7FBC21 #21BC5D
monochromatic
#4C0F54 #7C1888 #AB21BC #CB3DDD #D971E6

Accessibility & contrast

On white

5.71
#AB21BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB21BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB21BC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB21BC#FFFFFF#000000##FFFFFF
##AB21BC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab21bc;
/* rgb */ color: rgb(171, 33, 188);
/* oklch */ color: oklch(54.3% 0.235 322.9);
Tailwind
colors: {
  custom: {
    50: '#c870d1',
    500: '#ab21bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab21bc;
$custom-light: #c870d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab21bc",
  "rgb": {
    "r": 171,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 293.419,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54286,
    "c": 0.23544,
    "h": 322.9
  },
  "luminance": 0.13376
}

Semantic roles & 50–950 ramp

primary
#AB21BC
secondary
#77CD6C
accent
#ED3B4E
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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