#AB2CA4#AB2CA4

#AB2CA4 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.207 H 330.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA4
RGBrgb(171, 44, 164)
HSLhsl(303, 59%, 42%)
HSVhsv(303, 74%, 67%)
CMYKcmyk(0%, 74.3%, 4.1%, 32.9%)
CIE-LABlab(42.98, 63.55, -37.08)
CIE-LCHlch(42.98, 73.58, 329.74°)
OKLaboklab(53.58% 0.1805 -0.1023)
OKLCHoklch(53.58% 0.207 330.4)
XYZxyz(24.3960, 13.1415, 36.3664)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA4 #2CAB33
analogous
#732CAB #AB2CA4 #AB2C65
triadic
#AB2CA4 #A4AB2C #2CA4AB
tetradic
#AB2CA4 #AB732C #2CAB33 #2C65AB
square
#AB2CA4 #AB732C #2CAB33 #2C65AB
split-complementary
#AB2CA4 #65AB2C #2CAB73
monochromatic
#4A1347 #7A1F75 #AB2CA4 #CF45C8 #DC76D6

Accessibility & contrast

On white

5.79
#AB2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB2CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CA4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA4#FFFFFF#000000##FFFFFF
##AB2CA41.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA7
Deuteranopia (green-blind)
#536CA1
Tritanopia (blue-blind)
#B23D66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ca4;
/* rgb */ color: rgb(171, 44, 164);
/* oklch */ color: oklch(53.6% 0.207 330.4);
Tailwind
colors: {
  custom: {
    50: '#c873bf',
    500: '#ab2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca4;
$custom-light: #c873bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca4",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 303.307,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53583,
    "c": 0.20744,
    "h": 330.4
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

primary
#AB2CA4
secondary
#6FC374
accent
#E24E46
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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