#AB2CA6#AB2CA6

#AB2CA6 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.209 H 329.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA6
RGBrgb(171, 44, 166)
HSLhsl(302, 59%, 42%)
HSVhsv(302, 74%, 67%)
CMYKcmyk(0%, 74.3%, 2.9%, 32.9%)
CIE-LABlab(43.08, 63.87, -38.10)
CIE-LCHlch(43.08, 74.37, 329.18°)
OKLaboklab(53.7% 0.1805 -0.1053)
OKLCHoklch(53.7% 0.209 329.7)
XYZxyz(24.5781, 13.2144, 37.3251)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA6 #2CAB31
analogous
#702CAB #AB2CA6 #AB2C67
triadic
#AB2CA6 #A6AB2C #2CA6AB
tetradic
#AB2CA6 #AB702C #2CAB31 #2C67AB
square
#AB2CA6 #AB702C #2CAB31 #2C67AB
split-complementary
#AB2CA6 #67AB2C #2CAB70
monochromatic
#4A1347 #7A1F77 #AB2CA6 #CF45CA #DC76D8

Accessibility & contrast

On white

5.77
#AB2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB2CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CA6
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA6#FFFFFF#000000##FFFFFF
##AB2CA61.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BA9
Deuteranopia (green-blind)
#526CA3
Tritanopia (blue-blind)
#B13E67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ca6;
/* rgb */ color: rgb(171, 44, 166);
/* oklch */ color: oklch(53.7% 0.209 329.7);
Tailwind
colors: {
  custom: {
    50: '#c873c1',
    500: '#ab2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca6;
$custom-light: #c873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca6",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 302.362,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53696,
    "c": 0.20895,
    "h": 329.7
  },
  "luminance": 0.13212
}

Semantic roles & 50–950 ramp

primary
#AB2CA6
secondary
#6FC373
accent
#E24C46
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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