#AB2E97#AB2E97

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

Color values

HEX#AB2E97
RGBrgb(171, 46, 151)
HSLhsl(310, 58%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 73.1%, 11.7%, 32.9%)
CIE-LABlab(42.53, 60.88, -29.97)
CIE-LCHlch(42.53, 67.86, 333.79°)
OKLaboklab(53.05% 0.1778 -0.0818)
OKLCHoklch(53.05% 0.196 335.3)
XYZxyz(23.3578, 12.8483, 30.5220)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E97 #2EAB42
analogous
#812EAB #AB2E97 #AB2E58
triadic
#AB2E97 #97AB2E #2E97AB
tetradic
#AB2E97 #AB812E #2EAB42 #2E58AB
square
#AB2E97 #AB812E #2EAB42 #2E58AB
split-complementary
#AB2E97 #58AB2E #2EAB81
monochromatic
#4B1442 #7B216C #AB2E97 #CE48B8 #DB79CB

Accessibility & contrast

On white

5.88
#AB2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB2E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E97
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E97#FFFFFF#000000##FFFFFF
##AB2E971.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2e97;
/* rgb */ color: rgb(171, 46, 151);
/* oklch */ color: oklch(53.0% 0.196 335.3);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ab2e97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e97;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e97",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 309.6,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.19575,
    "h": 335.3
  },
  "luminance": 0.12846
}

Semantic roles & 50–950 ramp

primary
#AB2E97
secondary
#72C37F
accent
#E16047
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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