#AB51DC#AB51DC

#AB51DC is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.8% C 0.211 H 311.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB51DC
RGBrgb(171, 81, 220)
HSLhsl(279, 67%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(22.3%, 63.2%, 0%, 13.7%)
CIE-LABlab(51.51, 59.20, -56.04)
CIE-LCHlch(51.51, 81.52, 316.57°)
OKLaboklab(60.76% 0.1399 -0.1579)
OKLCHoklch(60.76% 0.211 311.5)
XYZxyz(32.6529, 19.7109, 69.7807)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DC #82DC51
analogous
#6651DC #AB51DC #DC51C8
triadic
#AB51DC #DCAB51 #51DCAB
tetradic
#AB51DC #DC6651 #82DC51 #51C8DC
square
#AB51DC #DC6651 #82DC51 #51C8DC
split-complementary
#AB51DC #C8DC51 #51DC66
monochromatic
#6B1E95 #8F28C8 #AB51DC #C484E6 #DCB7F0

Accessibility & contrast

On white

4.25
#AB51DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DC#FFFFFF#000000##000000
##AB51DC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0776E0
Deuteranopia (green-blind)
#447DD9
Tritanopia (blue-blind)
#A56C8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51dc;
/* rgb */ color: rgb(171, 81, 220);
/* oklch */ color: oklch(60.8% 0.211 311.5);
Tailwind
colors: {
  custom: {
    50: '#c887e7',
    500: '#ab51dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab51dc;
$custom-light: #c887e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51dc",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 278.849,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.6076,
    "c": 0.21091,
    "h": 311.5
  },
  "luminance": 0.1971
}

Semantic roles & 50–950 ramp

primary
#AB51DC
secondary
#BCE0A9
accent
#E93E7B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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