#AB51CE#AB51CE

#AB51CE is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.9% C 0.197 H 315.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB51CE
RGBrgb(171, 81, 206)
HSLhsl(283, 56%, 56%)
HSVhsv(283, 61%, 81%)
CMYKcmyk(17%, 60.7%, 0%, 19.2%)
CIE-LABlab(50.69, 56.27, -49.37)
CIE-LCHlch(50.69, 74.86, 318.73°)
OKLaboklab(59.9% 0.1401 -0.1383)
OKLCHoklch(59.9% 0.197 315.4)
XYZxyz(30.8758, 19.0000, 60.4215)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CE #74CE51
analogous
#6D51CE #AB51CE #CE51B3
triadic
#AB51CE #CEAB51 #51CEAB
tetradic
#AB51CE #CE6D51 #74CE51 #51B3CE
square
#AB51CE #CE6D51 #74CE51 #51B3CE
split-complementary
#AB51CE #B3CE51 #51CE6D
monochromatic
#672480 #8D32B0 #AB51CE #C281DB #D9B1E9

Accessibility & contrast

On white

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

On black

4.80
#AB51CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CE#FFFFFF#000000##000000
##AB51CE1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2973D2
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#A96788
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab51ce;
/* rgb */ color: rgb(171, 81, 206);
/* oklch */ color: oklch(59.9% 0.197 315.4);
Tailwind
colors: {
  custom: {
    50: '#c787dd',
    500: '#ab51ce',
    950: '#000000',
  },
}
SCSS
$custom: #ab51ce;
$custom-light: #c787dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51ce",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 283.2,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.19688,
    "h": 315.4
  },
  "luminance": 0.18999
}

Semantic roles & 50–950 ramp

primary
#AB51CE
secondary
#B2D7A4
accent
#DF4873
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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