#AB2DA1#AB2DA1

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

Color values

HEX#AB2DA1
RGBrgb(171, 45, 161)
HSLhsl(305, 58%, 42%)
HSVhsv(305, 74%, 67%)
CMYKcmyk(0%, 73.7%, 5.8%, 32.9%)
CIE-LABlab(42.93, 62.75, -35.36)
CIE-LCHlch(42.93, 72.03, 330.60°)
OKLaboklab(53.5% 0.1794 -0.0974)
OKLCHoklch(53.5% 0.204 331.5)
XYZxyz(24.1660, 13.1099, 34.9690)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DA1 #2DAB37
analogous
#762DAB #AB2DA1 #AB2D62
triadic
#AB2DA1 #A1AB2D #2DA1AB
tetradic
#AB2DA1 #AB762D #2DAB37 #2D62AB
square
#AB2DA1 #AB762D #2DAB37 #2D62AB
split-complementary
#AB2DA1 #62AB2D #2DAB76
monochromatic
#4A1446 #7B2073 #AB2DA1 #CE47C4 #DB77D3

Accessibility & contrast

On white

5.80
#AB2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB2DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DA1
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DA1#FFFFFF#000000##FFFFFF
##AB2DA11.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235AA4
Deuteranopia (green-blind)
#556C9E
Tritanopia (blue-blind)
#B23C64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2da1;
/* rgb */ color: rgb(171, 45, 161);
/* oklch */ color: oklch(53.5% 0.204 331.5);
Tailwind
colors: {
  custom: {
    50: '#c873bd',
    500: '#ab2da1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2da1;
$custom-light: #c873bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2da1",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 304.762,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53497,
    "c": 0.20415,
    "h": 331.5
  },
  "luminance": 0.13108
}

Semantic roles & 50–950 ramp

primary
#AB2DA1
secondary
#71C377
accent
#E25346
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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