#AB2B9A#AB2B9A

#AB2B9A is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.201 H 334.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB2B9A
RGBrgb(171, 43, 154)
HSLhsl(308, 60%, 42%)
HSVhsv(308, 75%, 67%)
CMYKcmyk(0%, 74.9%, 9.9%, 32.9%)
CIE-LABlab(42.34, 62.32, -32.09)
CIE-LCHlch(42.34, 70.09, 332.76°)
OKLaboklab(52.96% 0.181 -0.0879)
OKLCHoklch(52.96% 0.201 334.1)
XYZxyz(23.4914, 12.7208, 31.7837)
Luminance0.1272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B9A #2BAB3C
analogous
#7C2BAB #AB2B9A #AB2B5A
triadic
#AB2B9A #9AAB2B #2B9AAB
tetradic
#AB2B9A #AB7C2B #2BAB3C #2B5AAB
square
#AB2B9A #AB7C2B #2BAB3C #2B5AAB
split-complementary
#AB2B9A #5AAB2B #2BAB7C
monochromatic
#491242 #7A1F6E #AB2B9A #D043BD #DC74CE

Accessibility & contrast

On white

5.93
#AB2B9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB2B9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B9A
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B9A#FFFFFF#000000##FFFFFF
##AB2B9A1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589D
Deuteranopia (green-blind)
#586B97
Tritanopia (blue-blind)
#B33760
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2b9a;
/* rgb */ color: rgb(171, 43, 154);
/* oklch */ color: oklch(53.0% 0.201 334.1);
Tailwind
colors: {
  custom: {
    50: '#c872b8',
    500: '#ab2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b9a;
$custom-light: #c872b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b9a",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 307.969,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52956,
    "c": 0.20117,
    "h": 334.1
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#AB2B9A
secondary
#6EC47A
accent
#E35A45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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