#AB2CB6#AB2CB6

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

Color values

HEX#AB2CB6
RGBrgb(171, 44, 182)
HSLhsl(295, 61%, 44%)
HSVhsv(295, 76%, 71%)
CMYKcmyk(6%, 75.8%, 0%, 28.6%)
CIE-LABlab(44.00, 66.53, -46.12)
CIE-LCHlch(44.00, 80.95, 325.27°)
OKLaboklab(54.64% 0.1801 -0.1286)
OKLCHoklch(54.64% 0.221 324.5)
XYZxyz(26.1381, 13.8384, 45.5412)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB6 #37B62C
analogous
#662CB6 #AB2CB6 #B62C7C
triadic
#AB2CB6 #B6AB2C #2CB6AB
tetradic
#AB2CB6 #B6662C #37B62C #2C7CB6
square
#AB2CB6 #B6662C #37B62C #2C7CB6
split-complementary
#AB2CB6 #7CB62C #2CB666
monochromatic
#4E1453 #7D2085 #AB2CB6 #C94CD4 #D87DE0

Accessibility & contrast

On white

5.57
#AB2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AB2CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB6
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB6#FFFFFF#000000##FFFFFF
##AB2CB61.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#486DB3
Tritanopia (blue-blind)
#AE4670
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2cb6;
/* rgb */ color: rgb(171, 44, 182);
/* oklch */ color: oklch(54.6% 0.221 324.5);
Tailwind
colors: {
  custom: {
    50: '#c873cc',
    500: '#ab2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb6;
$custom-light: #c873cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb6",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 295.217,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54644,
    "c": 0.2213,
    "h": 324.5
  },
  "luminance": 0.13837
}

Semantic roles & 50–950 ramp

primary
#AB2CB6
secondary
#7CC876
accent
#E44450
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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