#AB2E9A#AB2E9A

#AB2E9A is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.2% C 0.198 H 334.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB2E9A
RGBrgb(171, 46, 154)
HSLhsl(308, 58%, 43%)
HSVhsv(308, 73%, 67%)
CMYKcmyk(0%, 73.1%, 9.9%, 32.9%)
CIE-LABlab(42.68, 61.34, -31.55)
CIE-LCHlch(42.68, 68.98, 332.78°)
OKLaboklab(53.2% 0.1781 -0.0863)
OKLCHoklch(53.2% 0.198 334.1)
XYZxyz(23.6045, 12.9470, 31.8214)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E9A #2EAB3F
analogous
#7E2EAB #AB2E9A #AB2E5B
triadic
#AB2E9A #9AAB2E #2E9AAB
tetradic
#AB2E9A #AB7E2E #2EAB3F #2E5BAB
square
#AB2E9A #AB7E2E #2EAB3F #2E5BAB
split-complementary
#AB2E9A #5BAB2E #2EAB7E
monochromatic
#4B1443 #7B216F #AB2E9A #CE48BC #DB79CD

Accessibility & contrast

On white

5.85
#AB2E9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2E9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E9A
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E9A#FFFFFF#000000##FFFFFF
##AB2E9A1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599D
Deuteranopia (green-blind)
#596B97
Tritanopia (blue-blind)
#B33961
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2e9a;
/* rgb */ color: rgb(171, 46, 154);
/* oklch */ color: oklch(53.2% 0.198 334.1);
Tailwind
colors: {
  custom: {
    50: '#c873b8',
    500: '#ab2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e9a;
$custom-light: #c873b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e9a",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 308.16,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53203,
    "c": 0.1979,
    "h": 334.1
  },
  "luminance": 0.12945
}

Semantic roles & 50–950 ramp

primary
#AB2E9A
secondary
#72C37D
accent
#E15C47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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