#AB51C8#AB51C8

#AB51C8 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.191 H 317.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB51C8
RGBrgb(171, 81, 200)
HSLhsl(285, 52%, 55%)
HSVhsv(285, 60%, 78%)
CMYKcmyk(14.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(50.35, 55.04, -46.47)
CIE-LCHlch(50.35, 72.03, 319.83°)
OKLaboklab(59.55% 0.14 -0.1299)
OKLCHoklch(59.55% 0.191 317.1)
XYZxyz(30.1608, 18.7140, 56.6558)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51C8 #6EC851
analogous
#6F51C8 #AB51C8 #C851AA
triadic
#AB51C8 #C8AB51 #51C8AB
tetradic
#AB51C8 #C86F51 #6EC851 #51AAC8
square
#AB51C8 #C86F51 #6EC851 #51AAC8
split-complementary
#AB51C8 #AAC851 #51C86F
monochromatic
#642679 #8B35A7 #AB51C8 #C180D7 #D8AEE5

Accessibility & contrast

On white

4.43
#AB51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AB51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51C8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51C8#FFFFFF#000000##000000
##AB51C81.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#547BC5
Tritanopia (blue-blind)
#AA6585
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab51c8;
/* rgb */ color: rgb(171, 81, 200);
/* oklch */ color: oklch(59.5% 0.191 317.1);
Tailwind
colors: {
  custom: {
    50: '#c787d9',
    500: '#ab51c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab51c8;
$custom-light: #c787d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51c8",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 285.378,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59548,
    "c": 0.19092,
    "h": 317.1
  },
  "luminance": 0.18713
}

Semantic roles & 50–950 ramp

primary
#AB51C8
secondary
#AED3A1
accent
#DB4C6F
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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