#AB2CA5#AB2CA5

#AB2CA5 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.208 H 330.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA5
RGBrgb(171, 44, 165)
HSLhsl(303, 59%, 42%)
HSVhsv(303, 74%, 67%)
CMYKcmyk(0%, 74.3%, 3.5%, 32.9%)
CIE-LABlab(43.03, 63.71, -37.59)
CIE-LCHlch(43.03, 73.98, 329.46°)
OKLaboklab(53.64% 0.1805 -0.1038)
OKLCHoklch(53.64% 0.208 330.1)
XYZxyz(24.4867, 13.1778, 36.8439)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA5 #2CAB32
analogous
#722CAB #AB2CA5 #AB2C65
triadic
#AB2CA5 #A5AB2C #2CA5AB
tetradic
#AB2CA5 #AB722C #2CAB32 #2C65AB
square
#AB2CA5 #AB722C #2CAB32 #2C65AB
split-complementary
#AB2CA5 #65AB2C #2CAB72
monochromatic
#4A1347 #7A1F76 #AB2CA5 #CF45C9 #DC76D7

Accessibility & contrast

On white

5.78
#AB2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2CA5
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA5#FFFFFF#000000##FFFFFF
##AB2CA51.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#B13D66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ca5;
/* rgb */ color: rgb(171, 44, 165);
/* oklch */ color: oklch(53.6% 0.208 330.1);
Tailwind
colors: {
  custom: {
    50: '#c873c0',
    500: '#ab2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca5;
$custom-light: #c873c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca5",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 302.835,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53639,
    "c": 0.2082,
    "h": 330.1
  },
  "luminance": 0.13176
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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