#AB2C97#AB2C97

#AB2C97 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.9% C 0.198 H 335.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB2C97
RGBrgb(171, 44, 151)
HSLhsl(309, 59%, 42%)
HSVhsv(309, 74%, 67%)
CMYKcmyk(0%, 74.3%, 11.7%, 32.9%)
CIE-LABlab(42.30, 61.55, -30.34)
CIE-LCHlch(42.30, 68.62, 333.76°)
OKLaboklab(52.88% 0.1798 -0.0829)
OKLCHoklch(52.88% 0.198 335.3)
XYZxyz(23.2815, 12.6957, 30.4965)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C97 #2CAB40
analogous
#802CAB #AB2C97 #AB2C57
triadic
#AB2C97 #97AB2C #2C97AB
tetradic
#AB2C97 #AB802C #2CAB40 #2C57AB
square
#AB2C97 #AB802C #2CAB40 #2C57AB
split-complementary
#AB2C97 #57AB2C #2CAB80
monochromatic
#4A1341 #7A1F6C #AB2C97 #CF45B9 #DC76CC

Accessibility & contrast

On white

5.93
#AB2C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB2C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C97
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C97#FFFFFF#000000##FFFFFF
##AB2C971.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#596B94
Tritanopia (blue-blind)
#B4365F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2c97;
/* rgb */ color: rgb(171, 44, 151);
/* oklch */ color: oklch(52.9% 0.198 335.3);
Tailwind
colors: {
  custom: {
    50: '#c872b6',
    500: '#ab2c97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c97;
$custom-light: #c872b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c97",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 309.449,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52879,
    "c": 0.19796,
    "h": 335.3
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#AB2C97
secondary
#6FC37D
accent
#E25E46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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