#AB2CA8#AB2CA8

#AB2CA8 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.210 H 329.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA8
RGBrgb(171, 44, 168)
HSLhsl(301, 59%, 42%)
HSVhsv(301, 74%, 67%)
CMYKcmyk(0%, 74.3%, 1.8%, 32.9%)
CIE-LABlab(43.19, 64.19, -39.12)
CIE-LCHlch(43.19, 75.18, 328.64°)
OKLaboklab(53.81% 0.1805 -0.1082)
OKLCHoklch(53.81% 0.21 329.1)
XYZxyz(24.7629, 13.2883, 38.2989)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA8 #2CAB2F
analogous
#6E2CAB #AB2CA8 #AB2C69
triadic
#AB2CA8 #A8AB2C #2CA8AB
tetradic
#AB2CA8 #AB6E2C #2CAB2F #2C69AB
square
#AB2CA8 #AB6E2C #2CAB2F #2C69AB
split-complementary
#AB2CA8 #69AB2C #2CAB6E
monochromatic
#4A1348 #7A1F78 #AB2CA8 #CF45CC #DC76D9

Accessibility & contrast

On white

5.74
#AB2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2CA8
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA8#FFFFFF#000000##FFFFFF
##AB2CA81.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B13F68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ca8;
/* rgb */ color: rgb(171, 44, 168);
/* oklch */ color: oklch(53.8% 0.210 329.1);
Tailwind
colors: {
  custom: {
    50: '#c873c2',
    500: '#ab2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca8;
$custom-light: #c873c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca8",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 301.417,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5381,
    "c": 0.21046,
    "h": 329.1
  },
  "luminance": 0.13286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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