#AB51DB#AB51DB

#AB51DB is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.7% C 0.210 H 311.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB51DB
RGBrgb(171, 81, 219)
HSLhsl(279, 66%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(21.9%, 63%, 0%, 14.1%)
CIE-LABlab(51.45, 58.99, -55.57)
CIE-LCHlch(51.45, 81.04, 316.71°)
OKLaboklab(60.7% 0.1399 -0.1565)
OKLCHoklch(60.7% 0.21 311.8)
XYZxyz(32.5209, 19.6581, 69.0853)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DB #81DB51
analogous
#6651DB #AB51DB #DB51C6
triadic
#AB51DB #DBAB51 #51DBAB
tetradic
#AB51DB #DB6651 #81DB51 #51C6DB
square
#AB51DB #DB6651 #81DB51 #51C6DB
split-complementary
#AB51DB #C6DB51 #51DB66
monochromatic
#6B1E93 #8F29C6 #AB51DB #C384E5 #DCB6F0

Accessibility & contrast

On white

4.26
#AB51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DB#FFFFFF#000000##000000
##AB51DB1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B76DF
Deuteranopia (green-blind)
#457CD8
Tritanopia (blue-blind)
#A56C8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51db;
/* rgb */ color: rgb(171, 81, 219);
/* oklch */ color: oklch(60.7% 0.210 311.8);
Tailwind
colors: {
  custom: {
    50: '#c887e7',
    500: '#ab51db',
    950: '#000000',
  },
}
SCSS
$custom: #ab51db;
$custom-light: #c887e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51db",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 279.13,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60697,
    "c": 0.2099,
    "h": 311.8
  },
  "luminance": 0.19657
}

Semantic roles & 50–950 ramp

primary
#AB51DB
secondary
#BCDFA9
accent
#E93F7A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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