#AB2CA9#AB2CA9

#AB2CA9 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.211 H 328.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA9
RGBrgb(171, 44, 169)
HSLhsl(301, 59%, 42%)
HSVhsv(301, 74%, 67%)
CMYKcmyk(0%, 74.3%, 1.2%, 32.9%)
CIE-LABlab(43.25, 64.36, -39.63)
CIE-LCHlch(43.25, 75.58, 328.38°)
OKLaboklab(53.87% 0.1805 -0.1097)
OKLCHoklch(53.87% 0.211 328.7)
XYZxyz(24.8565, 13.3257, 38.7914)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA9 #2CAB2E
analogous
#6E2CAB #AB2CA9 #AB2C6A
triadic
#AB2CA9 #A9AB2C #2CA9AB
tetradic
#AB2CA9 #AB6E2C #2CAB2E #2C6AAB
square
#AB2CA9 #AB6E2C #2CAB2E #2C6AAB
split-complementary
#AB2CA9 #6AAB2C #2CAB6E
monochromatic
#4A1349 #7A1F79 #AB2CA9 #CF45CD #DC76DA

Accessibility & contrast

On white

5.73
#AB2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB2CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CA9
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA9#FFFFFF#000000##FFFFFF
##AB2CA91.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155BAC
Deuteranopia (green-blind)
#506CA6
Tritanopia (blue-blind)
#B13F69
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ca9;
/* rgb */ color: rgb(171, 44, 169);
/* oklch */ color: oklch(53.9% 0.211 328.7);
Tailwind
colors: {
  custom: {
    50: '#c873c3',
    500: '#ab2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca9;
$custom-light: #c873c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca9",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 300.945,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53868,
    "c": 0.21122,
    "h": 328.7
  },
  "luminance": 0.13324
}

Semantic roles & 50–950 ramp

primary
#AB2CA9
secondary
#6FC371
accent
#E24846
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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