#AB2CAB#AB2CAB

#AB2CAB is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.213 H 328.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB2CAB
RGBrgb(171, 44, 171)
HSLhsl(300, 59%, 42%)
HSVhsv(300, 74%, 67%)
CMYKcmyk(0%, 74.3%, 0%, 32.9%)
CIE-LABlab(43.36, 64.68, -40.64)
CIE-LCHlch(43.36, 76.39, 327.86°)
OKLaboklab(53.98% 0.1805 -0.1126)
OKLCHoklch(53.98% 0.213 328)
XYZxyz(25.0456, 13.4014, 39.7878)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CAB #2CAB2C
analogous
#6C2CAB #AB2CAB #AB2C6C
triadic
#AB2CAB #ABAB2C #2CABAB
tetradic
#AB2CAB #AB6C2C #2CAB2C #2C6CAB
square
#AB2CAB #AB6C2C #2CAB2C #2C6CAB
split-complementary
#AB2CAB #6CAB2C #2CAB6C
monochromatic
#4A134A #7A1F7A #AB2CAB #CF45CF #DC76DC

Accessibility & contrast

On white

5.71
#AB2CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB2CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CAB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CAB#FFFFFF#000000##FFFFFF
##AB2CAB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105CAE
Deuteranopia (green-blind)
#4F6CA8
Tritanopia (blue-blind)
#B0406A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2cab;
/* rgb */ color: rgb(171, 44, 171);
/* oklch */ color: oklch(54.0% 0.213 328.0);
Tailwind
colors: {
  custom: {
    50: '#c873c4',
    500: '#ab2cab',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cab;
$custom-light: #c873c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cab",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53984,
    "c": 0.21276,
    "h": 328
  },
  "luminance": 0.134
}

Semantic roles & 50–950 ramp

primary
#AB2CAB
secondary
#6FC36F
accent
#E24646
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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