#AB2A9A#AB2A9A

#AB2A9A is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.202 H 334.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB2A9A
RGBrgb(171, 42, 154)
HSLhsl(308, 61%, 42%)
HSVhsv(308, 75%, 67%)
CMYKcmyk(0%, 75.4%, 9.9%, 32.9%)
CIE-LABlab(42.23, 62.63, -32.26)
CIE-LCHlch(42.23, 70.45, 332.75°)
OKLaboklab(52.88% 0.1819 -0.0884)
OKLCHoklch(52.88% 0.202 334.1)
XYZxyz(23.4555, 12.6490, 31.7718)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A9A #2AAB3B
analogous
#7C2AAB #AB2A9A #AB2A5A
triadic
#AB2A9A #9AAB2A #2A9AAB
tetradic
#AB2A9A #AB7C2A #2AAB3B #2A5AAB
square
#AB2A9A #AB7C2A #2AAB3B #2A5AAB
split-complementary
#AB2A9A #5AAB2A #2AAB7C
monochromatic
#491242 #7A1E6E #AB2A9A #D142BE #DD73CF

Accessibility & contrast

On white

5.95
#AB2A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A9A
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A9A#FFFFFF#000000##FFFFFF
##AB2A9A1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#576A97
Tritanopia (blue-blind)
#B33660
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a9a;
/* rgb */ color: rgb(171, 42, 154);
/* oklch */ color: oklch(52.9% 0.202 334.1);
Tailwind
colors: {
  custom: {
    50: '#c872b8',
    500: '#ab2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a9a;
$custom-light: #c872b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a9a",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 307.907,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52877,
    "c": 0.20222,
    "h": 334.1
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#AB2A9A
secondary
#6DC478
accent
#E45944
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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