#AB2CB1#AB2CB1

#AB2CB1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.217 H 326.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AB2CB1
RGBrgb(171, 44, 177)
HSLhsl(297, 60%, 43%)
HSVhsv(297, 75%, 69%)
CMYKcmyk(3.4%, 75.1%, 0%, 30.6%)
CIE-LABlab(43.71, 65.68, -43.64)
CIE-LCHlch(43.71, 78.86, 326.40°)
OKLaboklab(54.34% 0.1804 -0.1214)
OKLCHoklch(54.34% 0.217 326.1)
XYZxyz(25.6306, 13.6354, 42.8684)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB1 #32B12C
analogous
#682CB1 #AB2CB1 #B12C74
triadic
#AB2CB1 #B1AB2C #2CB1AB
tetradic
#AB2CB1 #B1682C #32B12C #2C74B1
square
#AB2CB1 #B1682C #32B12C #2C74B1
split-complementary
#AB2CB1 #74B12C #2CB168
monochromatic
#4C144F #7C2080 #AB2CB1 #CB49D2 #D97ADE

Accessibility & contrast

On white

5.63
#AB2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2CB1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB1#FFFFFF#000000##FFFFFF
##AB2CB11.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#4B6DAE
Tritanopia (blue-blind)
#AF436D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2cb1;
/* rgb */ color: rgb(171, 44, 177);
/* oklch */ color: oklch(54.3% 0.217 326.1);
Tailwind
colors: {
  custom: {
    50: '#c873c9',
    500: '#ab2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb1;
$custom-light: #c873c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb1",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 297.293,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54339,
    "c": 0.21739,
    "h": 326.1
  },
  "luminance": 0.13634
}

Semantic roles & 50–950 ramp

primary
#AB2CB1
secondary
#77C673
accent
#E3444C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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