#AB2497#AB2497

#AB2497 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.3% C 0.206 H 335.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AB2497
RGBrgb(171, 36, 151)
HSLhsl(309, 65%, 41%)
HSVhsv(309, 79%, 67%)
CMYKcmyk(0%, 78.9%, 11.7%, 32.9%)
CIE-LABlab(41.46, 63.94, -31.65)
CIE-LCHlch(41.46, 71.35, 333.66°)
OKLaboklab(52.28% 0.1869 -0.0866)
OKLCHoklch(52.28% 0.206 335.1)
XYZxyz(23.0117, 12.1562, 30.4066)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2497 #24AB38
analogous
#7B24AB #AB2497 #AB2453
triadic
#AB2497 #97AB24 #2497AB
tetradic
#AB2497 #AB7B24 #24AB38 #2453AB
square
#AB2497 #AB7B24 #24AB38 #2453AB
split-complementary
#AB2497 #53AB24 #24AB7B
monochromatic
#460F3E #78196A #AB2497 #D537BE #E06ACE

Accessibility & contrast

On white

6.12
#AB2497 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB2497 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2497
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2497#FFFFFF#000000##FFFFFF
##AB24971.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#576994
Tritanopia (blue-blind)
#B4315C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2497;
/* rgb */ color: rgb(171, 36, 151);
/* oklch */ color: oklch(52.3% 0.206 335.1);
Tailwind
colors: {
  custom: {
    50: '#c86fb6',
    500: '#ab2497',
    950: '#000000',
  },
}
SCSS
$custom: #ab2497;
$custom-light: #c86fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2497",
  "rgb": {
    "r": 171,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 308.889,
    "s": 65.217,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.20597,
    "h": 335.1
  },
  "luminance": 0.12154
}

Semantic roles & 50–950 ramp

primary
#AB2497
secondary
#65C673
accent
#E85940
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2497

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

Preview Lab → · Contrast checker → · Palette generator →

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