#AB2CAA#AB2CAA

#AB2CAA is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.212 H 328.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AB2CAA
RGBrgb(171, 44, 170)
HSLhsl(300, 59%, 42%)
HSVhsv(300, 74%, 67%)
CMYKcmyk(0%, 74.3%, 0.6%, 32.9%)
CIE-LABlab(43.31, 64.52, -40.13)
CIE-LCHlch(43.31, 75.98, 328.12°)
OKLaboklab(53.93% 0.1805 -0.1112)
OKLCHoklch(53.93% 0.212 328.4)
XYZxyz(24.9507, 13.3634, 39.2877)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CAA #2CAB2D
analogous
#6C2CAB #AB2CAA #AB2C6B
triadic
#AB2CAA #AAAB2C #2CAAAB
tetradic
#AB2CAA #AB6C2C #2CAB2D #2C6BAB
square
#AB2CAA #AB6C2C #2CAB2D #2C6BAB
split-complementary
#AB2CAA #6BAB2C #2CAB6C
monochromatic
#4A1349 #7A1F7A #AB2CAA #CF45CE #DC76DB

Accessibility & contrast

On white

5.72
#AB2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2CAA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CAA#FFFFFF#000000##FFFFFF
##AB2CAA1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAD
Deuteranopia (green-blind)
#506CA7
Tritanopia (blue-blind)
#B14069
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2caa;
/* rgb */ color: rgb(171, 44, 170);
/* oklch */ color: oklch(53.9% 0.212 328.4);
Tailwind
colors: {
  custom: {
    50: '#c873c4',
    500: '#ab2caa',
    950: '#000000',
  },
}
SCSS
$custom: #ab2caa;
$custom-light: #c873c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2caa",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 300.472,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53925,
    "c": 0.21199,
    "h": 328.4
  },
  "luminance": 0.13362
}

Semantic roles & 50–950 ramp

primary
#AB2CAA
secondary
#6FC370
accent
#E24746
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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