#AB2CA1#AB2CA1

#AB2CA1 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.205 H 331.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA1
RGBrgb(171, 44, 161)
HSLhsl(305, 59%, 42%)
HSVhsv(305, 74%, 67%)
CMYKcmyk(0%, 74.3%, 5.8%, 32.9%)
CIE-LABlab(42.82, 63.08, -35.54)
CIE-LCHlch(42.82, 72.40, 330.60°)
OKLaboklab(53.42% 0.1804 -0.0979)
OKLCHoklch(53.42% 0.205 331.5)
XYZxyz(24.1283, 13.0345, 34.9564)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA1 #2CAB36
analogous
#752CAB #AB2CA1 #AB2C62
triadic
#AB2CA1 #A1AB2C #2CA1AB
tetradic
#AB2CA1 #AB752C #2CAB36 #2C62AB
square
#AB2CA1 #AB752C #2CAB36 #2C62AB
split-complementary
#AB2CA1 #62AB2C #2CAB75
monochromatic
#4A1345 #7A1F73 #AB2CA1 #CF45C4 #DC76D4

Accessibility & contrast

On white

5.82
#AB2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB2CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CA1
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA1#FFFFFF#000000##FFFFFF
##AB2CA11.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA4
Deuteranopia (green-blind)
#556B9E
Tritanopia (blue-blind)
#B23B64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ca1;
/* rgb */ color: rgb(171, 44, 161);
/* oklch */ color: oklch(53.4% 0.205 331.5);
Tailwind
colors: {
  custom: {
    50: '#c873bd',
    500: '#ab2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca1;
$custom-light: #c873bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca1",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 304.724,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53416,
    "c": 0.20522,
    "h": 331.5
  },
  "luminance": 0.13033
}

Semantic roles & 50–950 ramp

primary
#AB2CA1
secondary
#6FC376
accent
#E25246
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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