#AB51CD#AB51CD

#AB51CD is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.196 H 315.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB51CD
RGBrgb(171, 81, 205)
HSLhsl(284, 55%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(16.6%, 60.5%, 0%, 19.6%)
CIE-LABlab(50.63, 56.06, -48.89)
CIE-LCHlch(50.63, 74.39, 318.91°)
OKLaboklab(59.84% 0.1401 -0.1369)
OKLCHoklch(59.84% 0.196 315.6)
XYZxyz(30.7547, 18.9516, 59.7837)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CD #73CD51
analogous
#6D51CD #AB51CD #CD51B1
triadic
#AB51CD #CDAB51 #51CDAB
tetradic
#AB51CD #CD6D51 #73CD51 #51B1CD
square
#AB51CD #CD6D51 #73CD51 #51B1CD
split-complementary
#AB51CD #B1CD51 #51CD6D
monochromatic
#66257F #8C32AF #AB51CD #C281DB #D9B0E8

Accessibility & contrast

On white

4.38
#AB51CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AB51CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CD#FFFFFF#000000##000000
##AB51CD1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A73D1
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#A96788
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab51cd;
/* rgb */ color: rgb(171, 81, 205);
/* oklch */ color: oklch(59.8% 0.196 315.6);
Tailwind
colors: {
  custom: {
    50: '#c787dd',
    500: '#ab51cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab51cd;
$custom-light: #c787dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51cd",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 283.548,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59842,
    "c": 0.19588,
    "h": 315.6
  },
  "luminance": 0.18951
}

Semantic roles & 50–950 ramp

primary
#AB51CD
secondary
#B1D7A3
accent
#DF4972
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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