#AB2AC5#AB2AC5

#AB2AC5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.5% C 0.235 H 320.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AB2AC5
RGBrgb(171, 42, 197)
HSLhsl(290, 65%, 47%)
HSVhsv(290, 79%, 77%)
CMYKcmyk(13.2%, 78.7%, 0%, 22.7%)
CIE-LABlab(44.73, 69.75, -53.73)
CIE-LCHlch(44.73, 88.04, 322.39°)
OKLaboklab(55.46% 0.1803 -0.1509)
OKLCHoklch(55.46% 0.235 320.1)
XYZxyz(27.6993, 14.3465, 54.1226)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AC5 #44C52A
analogous
#5D2AC5 #AB2AC5 #C52A92
triadic
#AB2AC5 #C5AB2A #2AC5AB
tetradic
#AB2AC5 #C55D2A #44C52A #2A92C5
square
#AB2AC5 #C55D2A #44C52A #2A92C5
split-complementary
#AB2AC5 #92C52A #2AC55D
monochromatic
#531460 #7F1F93 #AB2AC5 #C352DA #D585E5

Accessibility & contrast

On white

5.43
#AB2AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AB2AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AC5
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AC5#FFFFFF#000000##FFFFFF
##AB2AC51.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#3A6EC2
Tritanopia (blue-blind)
#AB4C78
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab2ac5;
/* rgb */ color: rgb(171, 42, 197);
/* oklch */ color: oklch(55.5% 0.235 320.1);
Tailwind
colors: {
  custom: {
    50: '#c873d7',
    500: '#ab2ac5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ac5;
$custom-light: #c873d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ac5",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 289.935,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55456,
    "c": 0.23507,
    "h": 320.1
  },
  "luminance": 0.14345
}

Semantic roles & 50–950 ramp

primary
#AB2AC5
secondary
#8ACE7D
accent
#E8405C
background
#FCF7FD
surface
#F9EDFA
border
#D2C8D3
text
#140914
muted
#827B83

Preview Lab

Preview with #AB2AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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