#AB2BAB#AB2BAB

#AB2BAB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.214 H 328.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB2BAB
RGBrgb(171, 43, 171)
HSLhsl(300, 60%, 42%)
HSVhsv(300, 75%, 67%)
CMYKcmyk(0%, 74.9%, 0%, 32.9%)
CIE-LABlab(43.25, 65.00, -40.81)
CIE-LCHlch(43.25, 76.75, 327.88°)
OKLaboklab(53.91% 0.1814 -0.1131)
OKLCHoklch(53.91% 0.214 328)
XYZxyz(25.0088, 13.3278, 39.7755)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BAB #2BAB2B
analogous
#6B2BAB #AB2BAB #AB2B6B
triadic
#AB2BAB #ABAB2B #2BABAB
tetradic
#AB2BAB #AB6B2B #2BAB2B #2B6BAB
square
#AB2BAB #AB6B2B #2BAB2B #2B6BAB
split-complementary
#AB2BAB #6BAB2B #2BAB6B
monochromatic
#491249 #7A1F7A #AB2BAB #D043D0 #DC74DC

Accessibility & contrast

On white

5.73
#AB2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BAB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BAB#FFFFFF#000000##FFFFFF
##AB2BAB1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAE
Deuteranopia (green-blind)
#4F6CA8
Tritanopia (blue-blind)
#B04069
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2bab;
/* rgb */ color: rgb(171, 43, 171);
/* oklch */ color: oklch(53.9% 0.214 328.0);
Tailwind
colors: {
  custom: {
    50: '#c873c4',
    500: '#ab2bab',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bab;
$custom-light: #c873c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bab",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53906,
    "c": 0.21376,
    "h": 328
  },
  "luminance": 0.13326
}

Semantic roles & 50–950 ramp

primary
#AB2BAB
secondary
#6EC46E
accent
#E34545
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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