#AB219E#AB219E

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

Color values

HEX#AB219E
RGBrgb(171, 33, 158)
HSLhsl(306, 68%, 40%)
HSVhsv(306, 81%, 67%)
CMYKcmyk(0%, 80.7%, 7.6%, 32.9%)
CIE-LABlab(41.56, 65.77, -35.73)
CIE-LCHlch(41.56, 74.85, 331.49°)
OKLaboklab(52.46% 0.1895 -0.0983)
OKLCHoklch(52.46% 0.213 332.6)
XYZxyz(23.5101, 12.2163, 33.4609)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB219E #21AB2E
analogous
#7321AB #AB219E #AB2159
triadic
#AB219E #9EAB21 #219EAB
tetradic
#AB219E #AB7321 #21AB2E #2159AB
square
#AB219E #AB7321 #21AB2E #2159AB
split-complementary
#AB219E #59AB21 #21AB73
monochromatic
#440D3F #78176F #AB219E #D732C8 #E165D6

Accessibility & contrast

On white

6.10
#AB219E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB219E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB219E
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB219E#FFFFFF#000000##FFFFFF
##AB219E1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A1
Deuteranopia (green-blind)
#52699B
Tritanopia (blue-blind)
#B33360
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab219e;
/* rgb */ color: rgb(171, 33, 158);
/* oklch */ color: oklch(52.5% 0.213 332.6);
Tailwind
colors: {
  custom: {
    50: '#c86ebb',
    500: '#ab219e',
    950: '#000000',
  },
}
SCSS
$custom: #ab219e;
$custom-light: #c86ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab219e",
  "rgb": {
    "r": 171,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 305.652,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.52464,
    "c": 0.21346,
    "h": 332.6
  },
  "luminance": 0.12214
}

Semantic roles & 50–950 ramp

primary
#AB219E
secondary
#61C76B
accent
#EB4E3D
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB219E

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

Preview Lab → · Contrast checker → · Palette generator →

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