#AB2A9E#AB2A9E

#AB2A9E is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.205 H 332.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AB2A9E
RGBrgb(171, 42, 158)
HSLhsl(306, 61%, 42%)
HSVhsv(306, 75%, 67%)
CMYKcmyk(0%, 75.4%, 7.6%, 32.9%)
CIE-LABlab(42.44, 63.24, -34.34)
CIE-LCHlch(42.44, 71.96, 331.50°)
OKLaboklab(53.09% 0.1821 -0.0944)
OKLCHoklch(53.09% 0.205 332.6)
XYZxyz(23.7942, 12.7845, 33.5556)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A9E #2AAB37
analogous
#782AAB #AB2A9E #AB2A5D
triadic
#AB2A9E #9EAB2A #2A9EAB
tetradic
#AB2A9E #AB782A #2AAB37 #2A5DAB
square
#AB2A9E #AB782A #2AAB37 #2A5DAB
split-complementary
#AB2A9E #5DAB2A #2AAB78
monochromatic
#491243 #7A1E71 #AB2A9E #D142C2 #DD73D2

Accessibility & contrast

On white

5.90
#AB2A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB2A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A9E
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A9E#FFFFFF#000000##FFFFFF
##AB2A9E1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A1
Deuteranopia (green-blind)
#556B9B
Tritanopia (blue-blind)
#B33862
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a9e;
/* rgb */ color: rgb(171, 42, 158);
/* oklch */ color: oklch(53.1% 0.205 332.6);
Tailwind
colors: {
  custom: {
    50: '#c872bb',
    500: '#ab2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a9e;
$custom-light: #c872bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a9e",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 306.047,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53093,
    "c": 0.20509,
    "h": 332.6
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#AB2A9E
secondary
#6DC476
accent
#E45444
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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