#AB2C9E#AB2C9E

#AB2C9E is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.203 H 332.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AB2C9E
RGBrgb(171, 44, 158)
HSLhsl(306, 59%, 42%)
HSVhsv(306, 74%, 67%)
CMYKcmyk(0%, 74.3%, 7.6%, 32.9%)
CIE-LABlab(42.66, 62.61, -33.99)
CIE-LCHlch(42.66, 71.24, 331.50°)
OKLaboklab(53.25% 0.1803 -0.0934)
OKLCHoklch(53.25% 0.203 332.6)
XYZxyz(23.8669, 12.9299, 33.5798)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C9E #2CAB39
analogous
#792CAB #AB2C9E #AB2C5E
triadic
#AB2C9E #9EAB2C #2C9EAB
tetradic
#AB2C9E #AB792C #2CAB39 #2C5EAB
square
#AB2C9E #AB792C #2CAB39 #2C5EAB
split-complementary
#AB2C9E #5EAB2C #2CAB79
monochromatic
#4A1344 #7A1F71 #AB2C9E #CF45C1 #DC76D1

Accessibility & contrast

On white

5.86
#AB2C9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2C9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C9E
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C9E#FFFFFF#000000##FFFFFF
##AB2C9E1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A1
Deuteranopia (green-blind)
#566B9B
Tritanopia (blue-blind)
#B33A62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2c9e;
/* rgb */ color: rgb(171, 44, 158);
/* oklch */ color: oklch(53.3% 0.203 332.6);
Tailwind
colors: {
  custom: {
    50: '#c872bb',
    500: '#ab2c9e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c9e;
$custom-light: #c872bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c9e",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 306.142,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53251,
    "c": 0.203,
    "h": 332.6
  },
  "luminance": 0.12928
}

Semantic roles & 50–950 ramp

primary
#AB2C9E
secondary
#6FC378
accent
#E25646
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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