#AB2D9D#AB2D9D

#AB2D9D is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.3% C 0.201 H 333.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB2D9D
RGBrgb(171, 45, 157)
HSLhsl(307, 58%, 42%)
HSVhsv(307, 74%, 67%)
CMYKcmyk(0%, 73.7%, 8.2%, 32.9%)
CIE-LABlab(42.72, 62.13, -33.29)
CIE-LCHlch(42.72, 70.49, 331.82°)
OKLaboklab(53.28% 0.1792 -0.0914)
OKLCHoklch(53.28% 0.201 333)
XYZxyz(23.8189, 12.9710, 33.1409)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D9D #2DAB3B
analogous
#7A2DAB #AB2D9D #AB2D5E
triadic
#AB2D9D #9DAB2D #2D9DAB
tetradic
#AB2D9D #AB7A2D #2DAB3B #2D5EAB
square
#AB2D9D #AB7A2D #2DAB3B #2D5EAB
split-complementary
#AB2D9D #5EAB2D #2DAB7A
monochromatic
#4A1444 #7B2071 #AB2D9D #CE47BF #DB77D0

Accessibility & contrast

On white

5.84
#AB2D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D9D
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D9D#FFFFFF#000000##FFFFFF
##AB2D9D1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2759A0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#B33A62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2d9d;
/* rgb */ color: rgb(171, 45, 157);
/* oklch */ color: oklch(53.3% 0.201 333.0);
Tailwind
colors: {
  custom: {
    50: '#c873ba',
    500: '#ab2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d9d;
$custom-light: #c873ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d9d",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 306.667,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53279,
    "c": 0.20119,
    "h": 333
  },
  "luminance": 0.12969
}

Semantic roles & 50–950 ramp

primary
#AB2D9D
secondary
#71C37A
accent
#E25846
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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