#AB51CB#AB51CB

#AB51CB is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.7% C 0.194 H 316.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB51CB
RGBrgb(171, 81, 203)
HSLhsl(284, 54%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(15.8%, 60.1%, 0%, 20.4%)
CIE-LABlab(50.52, 55.65, -47.92)
CIE-LCHlch(50.52, 73.44, 319.27°)
OKLaboklab(59.72% 0.14 -0.1341)
OKLCHoklch(59.72% 0.194 316.2)
XYZxyz(30.5149, 18.8557, 58.5204)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CB #71CB51
analogous
#6E51CB #AB51CB #CB51AE
triadic
#AB51CB #CBAB51 #51CBAB
tetradic
#AB51CB #CB6E51 #71CB51 #51AECB
square
#AB51CB #CB6E51 #71CB51 #51AECB
split-complementary
#AB51CB #AECB51 #51CB6E
monochromatic
#66257C #8C33AC #AB51CB #C280D9 #D8AFE7

Accessibility & contrast

On white

4.40
#AB51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AB51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CB#FFFFFF#000000##000000
##AB51CB1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D73CF
Deuteranopia (green-blind)
#527BC8
Tritanopia (blue-blind)
#A96686
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab51cb;
/* rgb */ color: rgb(171, 81, 203);
/* oklch */ color: oklch(59.7% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#c787db',
    500: '#ab51cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab51cb;
$custom-light: #c787db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51cb",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 284.262,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59724,
    "c": 0.19389,
    "h": 316.2
  },
  "luminance": 0.18855
}

Semantic roles & 50–950 ramp

primary
#AB51CB
secondary
#B0D5A3
accent
#DD4A71
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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