#AB2CB4#AB2CB4

#AB2CB4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.220 H 325.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AB2CB4
RGBrgb(171, 44, 180)
HSLhsl(296, 61%, 44%)
HSVhsv(296, 76%, 71%)
CMYKcmyk(5%, 75.6%, 0%, 29.4%)
CIE-LABlab(43.88, 66.19, -45.13)
CIE-LCHlch(43.88, 80.11, 325.71°)
OKLaboklab(54.52% 0.1802 -0.1257)
OKLCHoklch(54.52% 0.22 325.1)
XYZxyz(25.9329, 13.7563, 44.4605)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB4 #35B42C
analogous
#672CB4 #AB2CB4 #B42C79
triadic
#AB2CB4 #B4AB2C #2CB4AB
tetradic
#AB2CB4 #B4672C #35B42C #2C79B4
square
#AB2CB4 #B4672C #35B42C #2C79B4
split-complementary
#AB2CB4 #79B42C #2CB467
monochromatic
#4E1452 #7C2083 #AB2CB4 #CA4AD3 #D87CDF

Accessibility & contrast

On white

5.60
#AB2CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB2CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB4#FFFFFF#000000##FFFFFF
##AB2CB41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2cb4;
/* rgb */ color: rgb(171, 44, 180);
/* oklch */ color: oklch(54.5% 0.220 325.1);
Tailwind
colors: {
  custom: {
    50: '#c873cb',
    500: '#ab2cb4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb4;
$custom-light: #c873cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb4",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 296.029,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.21973,
    "h": 325.1
  },
  "luminance": 0.13755
}

Semantic roles & 50–950 ramp

primary
#AB2CB4
secondary
#7AC775
accent
#E4444F
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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