#AB2D9A#AB2D9A

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

Color values

HEX#AB2D9A
RGBrgb(171, 45, 154)
HSLhsl(308, 58%, 42%)
HSVhsv(308, 74%, 67%)
CMYKcmyk(0%, 73.7%, 9.9%, 32.9%)
CIE-LABlab(42.57, 61.67, -31.73)
CIE-LCHlch(42.57, 69.35, 332.77°)
OKLaboklab(53.12% 0.179 -0.0869)
OKLCHoklch(53.12% 0.199 334.1)
XYZxyz(23.5659, 12.8698, 31.8086)
Luminance0.1287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D9A #2DAB3E
analogous
#7D2DAB #AB2D9A #AB2D5B
triadic
#AB2D9A #9AAB2D #2D9AAB
tetradic
#AB2D9A #AB7D2D #2DAB3E #2D5BAB
square
#AB2D9A #AB7D2D #2DAB3E #2D5BAB
split-complementary
#AB2D9A #5BAB2D #2DAB7D
monochromatic
#4A1443 #7B206E #AB2D9A #CE47BC #DB77CE

Accessibility & contrast

On white

5.88
#AB2D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB2D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D9A
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D9A#FFFFFF#000000##FFFFFF
##AB2D9A1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599D
Deuteranopia (green-blind)
#586B97
Tritanopia (blue-blind)
#B33861
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2d9a;
/* rgb */ color: rgb(171, 45, 154);
/* oklch */ color: oklch(53.1% 0.199 334.1);
Tailwind
colors: {
  custom: {
    50: '#c873b8',
    500: '#ab2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d9a;
$custom-light: #c873b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d9a",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 308.095,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53119,
    "c": 0.19901,
    "h": 334.1
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#AB2D9A
secondary
#71C37C
accent
#E25B46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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