#AB2CAC#AB2CAC

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

Color values

HEX#AB2CAC
RGBrgb(171, 44, 172)
HSLhsl(300, 59%, 42%)
HSVhsv(300, 74%, 67%)
CMYKcmyk(0.6%, 74.4%, 0%, 32.5%)
CIE-LABlab(43.42, 64.85, -41.14)
CIE-LCHlch(43.42, 76.80, 327.61°)
OKLaboklab(54.04% 0.1805 -0.1141)
OKLCHoklch(54.04% 0.214 327.7)
XYZxyz(25.1413, 13.4397, 40.2917)
Luminance0.1344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CAC #2DAC2C
analogous
#6B2CAC #AB2CAC #AC2C6D
triadic
#AB2CAC #ACAB2C #2CACAB
tetradic
#AB2CAC #AC6B2C #2DAC2C #2C6DAC
square
#AB2CAC #AC6B2C #2DAC2C #2C6DAC
split-complementary
#AB2CAC #6DAC2C #2CAC6B
monochromatic
#4A134B #7B207B #AB2CAC #CE46D0 #DB76DC

Accessibility & contrast

On white

5.69
#AB2CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB2CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CAC
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CAC#FFFFFF#000000##FFFFFF
##AB2CAC1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAF
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#B0416A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2cac;
/* rgb */ color: rgb(171, 44, 172);
/* oklch */ color: oklch(54.0% 0.214 327.7);
Tailwind
colors: {
  custom: {
    50: '#c873c5',
    500: '#ab2cac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cac;
$custom-light: #c873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cac",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 299.531,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54042,
    "c": 0.21352,
    "h": 327.7
  },
  "luminance": 0.13438
}

Semantic roles & 50–950 ramp

primary
#AB2CAC
secondary
#71C470
accent
#E24547
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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