#AB2A97#AB2A97

#AB2A97 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.200 H 335.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AB2A97
RGBrgb(171, 42, 151)
HSLhsl(309, 61%, 42%)
HSVhsv(309, 75%, 67%)
CMYKcmyk(0%, 75.4%, 11.7%, 32.9%)
CIE-LABlab(42.08, 62.18, -30.69)
CIE-LCHlch(42.08, 69.34, 333.73°)
OKLaboklab(52.72% 0.1817 -0.0839)
OKLCHoklch(52.72% 0.2 335.2)
XYZxyz(23.2088, 12.5503, 30.4723)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A97 #2AAB3E
analogous
#7F2AAB #AB2A97 #AB2A57
triadic
#AB2A97 #97AB2A #2A97AB
tetradic
#AB2A97 #AB7F2A #2AAB3E #2A57AB
square
#AB2A97 #AB7F2A #2AAB3E #2A57AB
split-complementary
#AB2A97 #57AB2A #2AAB7F
monochromatic
#491240 #7A1E6C #AB2A97 #D142BA #DD73CC

Accessibility & contrast

On white

5.98
#AB2A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AB2A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A97
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A97#FFFFFF#000000##FFFFFF
##AB2A971.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2a97;
/* rgb */ color: rgb(171, 42, 151);
/* oklch */ color: oklch(52.7% 0.200 335.2);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2a97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a97;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a97",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 309.302,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52718,
    "c": 0.20008,
    "h": 335.2
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#AB2A97
secondary
#6DC47A
accent
#E45D44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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