#AB2CB8#AB2CB8

#AB2CB8 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.223 H 323.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB2CB8
RGBrgb(171, 44, 184)
HSLhsl(294, 61%, 45%)
HSVhsv(294, 76%, 72%)
CMYKcmyk(7.1%, 76.1%, 0%, 27.8%)
CIE-LABlab(44.12, 66.87, -47.11)
CIE-LCHlch(44.12, 81.80, 324.84°)
OKLaboklab(54.77% 0.18 -0.1315)
OKLCHoklch(54.77% 0.223 323.9)
XYZxyz(26.3462, 13.9216, 46.6376)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB8 #39B82C
analogous
#652CB8 #AB2CB8 #B82C7F
triadic
#AB2CB8 #B8AB2C #2CB8AB
tetradic
#AB2CB8 #B8652C #39B82C #2C7FB8
square
#AB2CB8 #B8652C #39B82C #2C7FB8
split-complementary
#AB2CB8 #7FB82C #2CB865
monochromatic
#4F1455 #7D2087 #AB2CB8 #C84DD4 #D77EE0

Accessibility & contrast

On white

5.55
#AB2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AB2CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB8#FFFFFF#000000##FFFFFF
##AB2CB81.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#466DB5
Tritanopia (blue-blind)
#AE4771
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2cb8;
/* rgb */ color: rgb(171, 44, 184);
/* oklch */ color: oklch(54.8% 0.223 323.9);
Tailwind
colors: {
  custom: {
    50: '#c874ce',
    500: '#ab2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb8;
$custom-light: #c874ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb8",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 294.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54768,
    "c": 0.22288,
    "h": 323.9
  },
  "luminance": 0.1392
}

Semantic roles & 50–950 ramp

primary
#AB2CB8
secondary
#7FC977
accent
#E54352
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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