#AB2CB5#AB2CB5

#AB2CB5 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.221 H 324.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AB2CB5
RGBrgb(171, 44, 181)
HSLhsl(296, 61%, 44%)
HSVhsv(296, 76%, 71%)
CMYKcmyk(5.5%, 75.7%, 0%, 29%)
CIE-LABlab(43.94, 66.36, -45.63)
CIE-LCHlch(43.94, 80.53, 325.49°)
OKLaboklab(54.58% 0.1802 -0.1272)
OKLCHoklch(54.58% 0.221 324.8)
XYZxyz(26.0351, 13.7972, 44.9989)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB5 #36B52C
analogous
#662CB5 #AB2CB5 #B52C7B
triadic
#AB2CB5 #B5AB2C #2CB5AB
tetradic
#AB2CB5 #B5662C #36B52C #2C7BB5
square
#AB2CB5 #B5662C #36B52C #2C7BB5
split-complementary
#AB2CB5 #7BB52C #2CB566
monochromatic
#4E1453 #7C2084 #AB2CB5 #C94BD3 #D87CDF

Accessibility & contrast

On white

5.59
#AB2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB2CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB5#FFFFFF#000000##FFFFFF
##AB2CB51.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#496DB2
Tritanopia (blue-blind)
#AF456F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2cb5;
/* rgb */ color: rgb(171, 44, 181);
/* oklch */ color: oklch(54.6% 0.221 324.8);
Tailwind
colors: {
  custom: {
    50: '#c873cc',
    500: '#ab2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb5;
$custom-light: #c873cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb5",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 295.62,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54582,
    "c": 0.22052,
    "h": 324.8
  },
  "luminance": 0.13795
}

Semantic roles & 50–950 ramp

primary
#AB2CB5
secondary
#7BC875
accent
#E4444F
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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