#AB2CD4#AB2CD4

#AB2CD4 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.6% C 0.245 H 316.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB2CD4
RGBrgb(171, 44, 212)
HSLhsl(285, 66%, 50%)
HSVhsv(285, 79%, 83%)
CMYKcmyk(19.3%, 79.2%, 0%, 16.9%)
CIE-LABlab(45.93, 71.90, -60.46)
CIE-LCHlch(45.93, 93.95, 319.94°)
OKLaboklab(56.62% 0.1765 -0.1706)
OKLCHoklch(56.62% 0.245 316)
XYZxyz(29.5771, 15.2140, 63.6532)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CD4 #55D42C
analogous
#572CD4 #AB2CD4 #D42CA9
triadic
#AB2CD4 #D4AB2C #2CD4AB
tetradic
#AB2CD4 #D4572C #55D42C #2CA9D4
square
#AB2CD4 #D4572C #55D42C #2CA9D4
split-complementary
#AB2CD4 #A9D42C #2CD457
monochromatic
#59176F #8221A2 #AB2CD4 #BF5FDE #D392E9

Accessibility & contrast

On white

5.19
#AB2CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AB2CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CD4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CD4#FFFFFF#000000##FFFFFF
##AB2CD41.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#2870D0
Tritanopia (blue-blind)
#A85481
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab2cd4;
/* rgb */ color: rgb(171, 44, 212);
/* oklch */ color: oklch(56.6% 0.245 316.0);
Tailwind
colors: {
  custom: {
    50: '#c975e2',
    500: '#ab2cd4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cd4;
$custom-light: #c975e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cd4",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 212
  },
  "hsl": {
    "h": 285.357,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56617,
    "c": 0.24548,
    "h": 316
  },
  "luminance": 0.15213
}

Semantic roles & 50–950 ramp

primary
#AB2CD4
secondary
#9BD388
accent
#E93F68
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140915
muted
#827B84

Preview Lab

Preview with #AB2CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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