#AB219F#AB219F

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

Color values

HEX#AB219F
RGBrgb(171, 33, 159)
HSLhsl(305, 68%, 40%)
HSVhsv(305, 81%, 67%)
CMYKcmyk(0%, 80.7%, 7%, 32.9%)
CIE-LABlab(41.61, 65.92, -36.24)
CIE-LCHlch(41.61, 75.23, 331.20°)
OKLaboklab(52.52% 0.1895 -0.0998)
OKLCHoklch(52.52% 0.214 332.2)
XYZxyz(23.5965, 12.2509, 33.9161)
Luminance0.1225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB219F #21AB2D
analogous
#7221AB #AB219F #AB215A
triadic
#AB219F #9FAB21 #219FAB
tetradic
#AB219F #AB7221 #21AB2D #215AAB
square
#AB219F #AB7221 #21AB2D #215AAB
split-complementary
#AB219F #5AAB21 #21AB72
monochromatic
#440D40 #78176F #AB219F #D732C9 #E165D7

Accessibility & contrast

On white

6.09
#AB219F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB219F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB219F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB219F#FFFFFF#000000##FFFFFF
##AB219F1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1456A2
Deuteranopia (green-blind)
#52699C
Tritanopia (blue-blind)
#B33360
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab219f;
/* rgb */ color: rgb(171, 33, 159);
/* oklch */ color: oklch(52.5% 0.214 332.2);
Tailwind
colors: {
  custom: {
    50: '#c86fbc',
    500: '#ab219f',
    950: '#000000',
  },
}
SCSS
$custom: #ab219f;
$custom-light: #c86fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab219f",
  "rgb": {
    "r": 171,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 305.217,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.21417,
    "h": 332.2
  },
  "luminance": 0.12249
}

Semantic roles & 50–950 ramp

primary
#AB219F
secondary
#61C76A
accent
#EB4C3D
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB219F

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

Preview Lab → · Contrast checker → · Palette generator →

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