#AB21BD#AB21BD

#AB21BD is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.4% C 0.236 H 322.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AB21BD
RGBrgb(171, 33, 189)
HSLhsl(293, 70%, 44%)
HSVhsv(293, 83%, 74%)
CMYKcmyk(9.5%, 82.5%, 0%, 25.9%)
CIE-LABlab(43.39, 70.74, -51.21)
CIE-LCHlch(43.39, 87.33, 324.10°)
OKLaboklab(54.35% 0.1877 -0.1434)
OKLCHoklch(54.35% 0.236 322.6)
XYZxyz(26.5228, 13.4214, 49.3278)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB21BD #33BD21
analogous
#5D21BD #AB21BD #BD2181
triadic
#AB21BD #BDAB21 #21BDAB
tetradic
#AB21BD #BD5D21 #33BD21 #2181BD
square
#AB21BD #BD5D21 #33BD21 #2181BD
split-complementary
#AB21BD #81BD21 #21BD5D
monochromatic
#4D0F55 #7C1889 #AB21BD #CB3EDD #D972E6

Accessibility & contrast

On white

5.70
#AB21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB21BD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB21BD#FFFFFF#000000##FFFFFF
##AB21BD1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#3D6BBA
Tritanopia (blue-blind)
#AD4472
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab21bd;
/* rgb */ color: rgb(171, 33, 189);
/* oklch */ color: oklch(54.4% 0.236 322.6);
Tailwind
colors: {
  custom: {
    50: '#c870d2',
    500: '#ab21bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab21bd;
$custom-light: #c870d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab21bd",
  "rgb": {
    "r": 171,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 293.077,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54351,
    "c": 0.23619,
    "h": 322.6
  },
  "luminance": 0.1342
}

Semantic roles & 50–950 ramp

primary
#AB21BD
secondary
#78CD6D
accent
#ED3B4F
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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