#AB2B97#AB2B97

#AB2B97 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 335.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB2B97
RGBrgb(171, 43, 151)
HSLhsl(309, 60%, 42%)
HSVhsv(309, 75%, 67%)
CMYKcmyk(0%, 74.9%, 11.7%, 32.9%)
CIE-LABlab(42.19, 61.87, -30.51)
CIE-LCHlch(42.19, 68.98, 333.75°)
OKLaboklab(52.8% 0.1807 -0.0834)
OKLCHoklch(52.8% 0.199 335.2)
XYZxyz(23.2447, 12.6221, 30.4843)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B97 #2BAB3F
analogous
#7F2BAB #AB2B97 #AB2B57
triadic
#AB2B97 #97AB2B #2B97AB
tetradic
#AB2B97 #AB7F2B #2BAB3F #2B57AB
square
#AB2B97 #AB7F2B #2BAB3F #2B57AB
split-complementary
#AB2B97 #57AB2B #2BAB7F
monochromatic
#491241 #7A1F6C #AB2B97 #D043BA #DC74CC

Accessibility & contrast

On white

5.96
#AB2B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB2B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B97
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B97#FFFFFF#000000##FFFFFF
##AB2B971.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#596A94
Tritanopia (blue-blind)
#B4355E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2b97;
/* rgb */ color: rgb(171, 43, 151);
/* oklch */ color: oklch(52.8% 0.199 335.2);
Tailwind
colors: {
  custom: {
    50: '#c872b6',
    500: '#ab2b97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b97;
$custom-light: #c872b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b97",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 309.375,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52798,
    "c": 0.19903,
    "h": 335.2
  },
  "luminance": 0.1262
}

Semantic roles & 50–950 ramp

primary
#AB2B97
secondary
#6EC47C
accent
#E35E45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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