#AB2DCC#AB2DCC

#AB2DCC is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.1% C 0.238 H 318.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AB2DCC
RGBrgb(171, 45, 204)
HSLhsl(288, 64%, 49%)
HSVhsv(288, 78%, 80%)
CMYKcmyk(16.2%, 77.9%, 0%, 20%)
CIE-LABlab(45.49, 70.12, -56.55)
CIE-LCHlch(45.49, 90.09, 321.11°)
OKLaboklab(56.14% 0.177 -0.1592)
OKLCHoklch(56.14% 0.238 318)
XYZxyz(28.6305, 14.8957, 58.4821)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DCC #4ECC2D
analogous
#5C2DCC #AB2DCC #CC2D9E
triadic
#AB2DCC #CCAB2D #2DCCAB
tetradic
#AB2DCC #CC5C2D #4ECC2D #2D9ECC
square
#AB2DCC #CC5C2D #4ECC2D #2D9ECC
split-complementary
#AB2DCC #9ECC2D #2DCC5C
monochromatic
#571768 #81229A #AB2DCC #C05BDB #D48DE6

Accessibility & contrast

On white

5.28
#AB2DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AB2DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DCC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DCC#FFFFFF#000000##FFFFFF
##AB2DCC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#346FC9
Tritanopia (blue-blind)
#AA517D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab2dcc;
/* rgb */ color: rgb(171, 45, 204);
/* oklch */ color: oklch(56.1% 0.238 318.0);
Tailwind
colors: {
  custom: {
    50: '#c975dc',
    500: '#ab2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #ab2dcc;
$custom-light: #c975dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2dcc",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 287.547,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56141,
    "c": 0.23804,
    "h": 318
  },
  "luminance": 0.14894
}

Semantic roles & 50–950 ramp

primary
#AB2DCC
secondary
#94D085
accent
#E74163
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140915
muted
#827B83

Preview Lab

Preview with #AB2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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