#AB2C9D#AB2C9D

#AB2C9D is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.202 H 333.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB2C9D
RGBrgb(171, 44, 157)
HSLhsl(307, 59%, 42%)
HSVhsv(307, 74%, 67%)
CMYKcmyk(0%, 74.3%, 8.2%, 32.9%)
CIE-LABlab(42.61, 62.46, -33.47)
CIE-LCHlch(42.61, 70.86, 331.81°)
OKLaboklab(53.2% 0.1802 -0.0919)
OKLCHoklch(53.2% 0.202 333)
XYZxyz(23.7812, 12.8956, 33.1284)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C9D #2CAB3A
analogous
#7A2CAB #AB2C9D #AB2C5E
triadic
#AB2C9D #9DAB2C #2C9DAB
tetradic
#AB2C9D #AB7A2C #2CAB3A #2C5EAB
square
#AB2C9D #AB7A2C #2CAB3A #2C5EAB
split-complementary
#AB2C9D #5EAB2C #2CAB7A
monochromatic
#4A1344 #7A1F70 #AB2C9D #CF45C0 #DC76D0

Accessibility & contrast

On white

5.87
#AB2C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB2C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C9D
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C9D#FFFFFF#000000##FFFFFF
##AB2C9D1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2659A0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#B33962
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2c9d;
/* rgb */ color: rgb(171, 44, 157);
/* oklch */ color: oklch(53.2% 0.202 333.0);
Tailwind
colors: {
  custom: {
    50: '#c872ba',
    500: '#ab2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c9d;
$custom-light: #c872ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c9d",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 306.614,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53197,
    "c": 0.20228,
    "h": 333
  },
  "luminance": 0.12894
}

Semantic roles & 50–950 ramp

primary
#AB2C9D
secondary
#6FC379
accent
#E25746
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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