#AB51CC#AB51CC

#AB51CC is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.8% C 0.195 H 315.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB51CC
RGBrgb(171, 81, 204)
HSLhsl(284, 55%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(16.2%, 60.3%, 0%, 20%)
CIE-LABlab(50.57, 55.86, -48.41)
CIE-LCHlch(50.57, 73.91, 319.09°)
OKLaboklab(59.78% 0.1401 -0.1355)
OKLCHoklch(59.78% 0.195 315.9)
XYZxyz(30.6344, 18.9035, 59.1501)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CC #72CC51
analogous
#6D51CC #AB51CC #CC51B0
triadic
#AB51CC #CCAB51 #51CCAB
tetradic
#AB51CC #CC6D51 #72CC51 #51B0CC
square
#AB51CC #CC6D51 #72CC51 #51B0CC
split-complementary
#AB51CC #B0CC51 #51CC6D
monochromatic
#66257E #8C33AD #AB51CC #C280DA #D9B0E8

Accessibility & contrast

On white

4.39
#AB51CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AB51CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CC#FFFFFF#000000##000000
##AB51CC1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#517BC9
Tritanopia (blue-blind)
#A96687
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab51cc;
/* rgb */ color: rgb(171, 81, 204);
/* oklch */ color: oklch(59.8% 0.195 315.9);
Tailwind
colors: {
  custom: {
    50: '#c787dc',
    500: '#ab51cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab51cc;
$custom-light: #c787dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51cc",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 283.902,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59783,
    "c": 0.19489,
    "h": 315.9
  },
  "luminance": 0.18902
}

Semantic roles & 50–950 ramp

primary
#AB51CC
secondary
#B1D6A3
accent
#DE4A72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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