#AB2D97#AB2D97

#AB2D97 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.197 H 335.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AB2D97
RGBrgb(171, 45, 151)
HSLhsl(310, 58%, 42%)
HSVhsv(310, 74%, 67%)
CMYKcmyk(0%, 73.7%, 11.7%, 32.9%)
CIE-LABlab(42.42, 61.22, -30.16)
CIE-LCHlch(42.42, 68.24, 333.78°)
OKLaboklab(52.96% 0.1788 -0.0824)
OKLCHoklch(52.96% 0.197 335.3)
XYZxyz(23.3192, 12.7711, 30.5091)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D97 #2DAB41
analogous
#802DAB #AB2D97 #AB2D58
triadic
#AB2D97 #97AB2D #2D97AB
tetradic
#AB2D97 #AB802D #2DAB41 #2D58AB
square
#AB2D97 #AB802D #2DAB41 #2D58AB
split-complementary
#AB2D97 #58AB2D #2DAB80
monochromatic
#4A1441 #7B206C #AB2D97 #CE47B9 #DB77CB

Accessibility & contrast

On white

5.91
#AB2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D97
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D97#FFFFFF#000000##FFFFFF
##AB2D971.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#5A6B94
Tritanopia (blue-blind)
#B4375F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2d97;
/* rgb */ color: rgb(171, 45, 151);
/* oklch */ color: oklch(53.0% 0.197 335.3);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ab2d97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d97;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d97",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 309.524,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52962,
    "c": 0.19687,
    "h": 335.3
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#AB2D97
secondary
#71C37E
accent
#E25F46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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