#AB2BA1#AB2BA1

#AB2BA1 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.3% C 0.206 H 331.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB2BA1
RGBrgb(171, 43, 161)
HSLhsl(305, 60%, 42%)
HSVhsv(305, 75%, 67%)
CMYKcmyk(0%, 74.9%, 5.8%, 32.9%)
CIE-LABlab(42.70, 63.39, -35.72)
CIE-LCHlch(42.70, 72.76, 330.60°)
OKLaboklab(53.34% 0.1813 -0.0984)
OKLCHoklch(53.34% 0.206 331.5)
XYZxyz(24.0915, 12.9609, 34.9441)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA1 #2BAB35
analogous
#752BAB #AB2BA1 #AB2B61
triadic
#AB2BA1 #A1AB2B #2BA1AB
tetradic
#AB2BA1 #AB752B #2BAB35 #2B61AB
square
#AB2BA1 #AB752B #2BAB35 #2B61AB
split-complementary
#AB2BA1 #61AB2B #2BAB75
monochromatic
#491245 #7A1F73 #AB2BA1 #D043C5 #DC74D4

Accessibility & contrast

On white

5.85
#AB2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BA1
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BA1#FFFFFF#000000##FFFFFF
##AB2BA11.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#546B9E
Tritanopia (blue-blind)
#B23B64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ba1;
/* rgb */ color: rgb(171, 43, 161);
/* oklch */ color: oklch(53.3% 0.206 331.5);
Tailwind
colors: {
  custom: {
    50: '#c872bd',
    500: '#ab2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba1;
$custom-light: #c872bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba1",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 304.688,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53336,
    "c": 0.20626,
    "h": 331.5
  },
  "luminance": 0.12959
}

Semantic roles & 50–950 ramp

primary
#AB2BA1
secondary
#6EC475
accent
#E35145
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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