#AB2CA2#AB2CA2

#AB2CA2 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.206 H 331.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA2
RGBrgb(171, 44, 162)
HSLhsl(304, 59%, 42%)
HSVhsv(304, 74%, 67%)
CMYKcmyk(0%, 74.3%, 5.3%, 32.9%)
CIE-LABlab(42.87, 63.24, -36.06)
CIE-LCHlch(42.87, 72.79, 330.31°)
OKLaboklab(53.47% 0.1804 -0.0993)
OKLCHoklch(53.47% 0.206 331.2)
XYZxyz(24.2168, 13.0699, 35.4227)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA2 #2CAB35
analogous
#752CAB #AB2CA2 #AB2C63
triadic
#AB2CA2 #A2AB2C #2CA2AB
tetradic
#AB2CA2 #AB752C #2CAB35 #2C63AB
square
#AB2CA2 #AB752C #2CAB35 #2C63AB
split-complementary
#AB2CA2 #63AB2C #2CAB75
monochromatic
#4A1346 #7A1F74 #AB2CA2 #CF45C5 #DC76D4

Accessibility & contrast

On white

5.81
#AB2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2CA2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA2#FFFFFF#000000##FFFFFF
##AB2CA21.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#546B9F
Tritanopia (blue-blind)
#B23C65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ca2;
/* rgb */ color: rgb(171, 44, 162);
/* oklch */ color: oklch(53.5% 0.206 331.2);
Tailwind
colors: {
  custom: {
    50: '#c873be',
    500: '#ab2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca2;
$custom-light: #c873be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca2",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 304.252,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53471,
    "c": 0.20595,
    "h": 331.2
  },
  "luminance": 0.13068
}

Semantic roles & 50–950 ramp

primary
#AB2CA2
secondary
#6FC375
accent
#E25146
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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