#AB2CB2#AB2CB2

#AB2CB2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.218 H 325.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AB2CB2
RGBrgb(171, 44, 178)
HSLhsl(297, 60%, 44%)
HSVhsv(297, 75%, 70%)
CMYKcmyk(3.9%, 75.3%, 0%, 30.2%)
CIE-LABlab(43.76, 65.85, -44.14)
CIE-LCHlch(43.76, 79.27, 326.16°)
OKLaboklab(54.4% 0.1803 -0.1228)
OKLCHoklch(54.4% 0.218 325.7)
XYZxyz(25.7306, 13.6754, 43.3952)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB2 #33B22C
analogous
#682CB2 #AB2CB2 #B22C76
triadic
#AB2CB2 #B2AB2C #2CB2AB
tetradic
#AB2CB2 #B2682C #33B22C #2C76B2
square
#AB2CB2 #B2682C #33B22C #2C76B2
split-complementary
#AB2CB2 #76B22C #2CB268
monochromatic
#4D1450 #7C2081 #AB2CB2 #CB49D2 #D97ADE

Accessibility & contrast

On white

5.62
#AB2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AB2CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB2#FFFFFF#000000##FFFFFF
##AB2CB21.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#4B6DAF
Tritanopia (blue-blind)
#AF446E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2cb2;
/* rgb */ color: rgb(171, 44, 178);
/* oklch */ color: oklch(54.4% 0.218 325.7);
Tailwind
colors: {
  custom: {
    50: '#c873c9',
    500: '#ab2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb2;
$custom-light: #c873c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb2",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 296.866,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.544,
    "c": 0.21817,
    "h": 325.7
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#AB2CB2
secondary
#78C673
accent
#E4444D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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