#AB2A9D#AB2A9D

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

Color values

HEX#AB2A9D
RGBrgb(171, 42, 157)
HSLhsl(307, 61%, 42%)
HSVhsv(307, 75%, 67%)
CMYKcmyk(0%, 75.4%, 8.2%, 32.9%)
CIE-LABlab(42.38, 63.09, -33.82)
CIE-LCHlch(42.38, 71.58, 331.80°)
OKLaboklab(53.04% 0.182 -0.0929)
OKLCHoklch(53.04% 0.204 333)
XYZxyz(23.7085, 12.7502, 33.1041)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A9D #2AAB38
analogous
#792AAB #AB2A9D #AB2A5C
triadic
#AB2A9D #9DAB2A #2A9DAB
tetradic
#AB2A9D #AB792A #2AAB38 #2A5CAB
square
#AB2A9D #AB792A #2AAB38 #2A5CAB
split-complementary
#AB2A9D #5CAB2A #2AAB79
monochromatic
#491243 #7A1E70 #AB2A9D #D142C1 #DD73D1

Accessibility & contrast

On white

5.92
#AB2A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB2A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A9D
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A9D#FFFFFF#000000##FFFFFF
##AB2A9D1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#566B9A
Tritanopia (blue-blind)
#B33861
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a9d;
/* rgb */ color: rgb(171, 42, 157);
/* oklch */ color: oklch(53.0% 0.204 333.0);
Tailwind
colors: {
  custom: {
    50: '#c872ba',
    500: '#ab2a9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a9d;
$custom-light: #c872ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a9d",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 306.512,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53038,
    "c": 0.20437,
    "h": 333
  },
  "luminance": 0.12748
}

Semantic roles & 50–950 ramp

primary
#AB2A9D
secondary
#6DC476
accent
#E45544
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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