#AB51DD#AB51DD

#AB51DD is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.212 H 311.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB51DD
RGBrgb(171, 81, 221)
HSLhsl(279, 67%, 59%)
HSVhsv(279, 63%, 87%)
CMYKcmyk(22.6%, 63.3%, 0%, 13.3%)
CIE-LABlab(51.57, 59.41, -56.51)
CIE-LCHlch(51.57, 81.99, 316.43°)
OKLaboklab(60.82% 0.1398 -0.1592)
OKLCHoklch(60.82% 0.212 311.3)
XYZxyz(32.7857, 19.7640, 70.4803)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DD #83DD51
analogous
#6551DD #AB51DD #DD51C9
triadic
#AB51DD #DDAB51 #51DDAB
tetradic
#AB51DD #DD6551 #83DD51 #51C9DD
square
#AB51DD #DD6551 #83DD51 #51C9DD
split-complementary
#AB51DD #C9DD51 #51DD65
monochromatic
#6B1D96 #9027C9 #AB51DD #C484E7 #DCB7F1

Accessibility & contrast

On white

4.24
#AB51DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB51DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DD#FFFFFF#000000##000000
##AB51DD1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0277E1
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#A56C90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51dd;
/* rgb */ color: rgb(171, 81, 221);
/* oklch */ color: oklch(60.8% 0.212 311.3);
Tailwind
colors: {
  custom: {
    50: '#c887e8',
    500: '#ab51dd',
    950: '#000000',
  },
}
SCSS
$custom: #ab51dd;
$custom-light: #c887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51dd",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 278.571,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60824,
    "c": 0.21192,
    "h": 311.3
  },
  "luminance": 0.19763
}

Semantic roles & 50–950 ramp

primary
#AB51DD
secondary
#BDE0AA
accent
#EA3E7B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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