#AB51DE#AB51DE

#AB51DE is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.9% C 0.213 H 311.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB51DE
RGBrgb(171, 81, 222)
HSLhsl(278, 68%, 59%)
HSVhsv(278, 64%, 87%)
CMYKcmyk(23%, 63.5%, 0%, 12.9%)
CIE-LABlab(51.63, 59.63, -56.98)
CIE-LCHlch(51.63, 82.47, 316.30°)
OKLaboklab(60.89% 0.1398 -0.1606)
OKLCHoklch(60.89% 0.213 311)
XYZxyz(32.9194, 19.8175, 71.1841)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DE #84DE51
analogous
#6551DE #AB51DE #DE51CB
triadic
#AB51DE #DEAB51 #51DEAB
tetradic
#AB51DE #DE6551 #84DE51 #51CBDE
square
#AB51DE #DE6551 #84DE51 #51CBDE
split-complementary
#AB51DE #CBDE51 #51DE65
monochromatic
#6B1D98 #9027CB #AB51DE #C484E8 #DDB8F2

Accessibility & contrast

On white

4.23
#AB51DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB51DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DE#FFFFFF#000000##000000
##AB51DE1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E2
Deuteranopia (green-blind)
#427DDB
Tritanopia (blue-blind)
#A56D90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51de;
/* rgb */ color: rgb(171, 81, 222);
/* oklch */ color: oklch(60.9% 0.213 311.0);
Tailwind
colors: {
  custom: {
    50: '#c887e9',
    500: '#ab51de',
    950: '#000000',
  },
}
SCSS
$custom: #ab51de;
$custom-light: #c887e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51de",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 278.298,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60887,
    "c": 0.21292,
    "h": 311
  },
  "luminance": 0.19817
}

Semantic roles & 50–950 ramp

primary
#AB51DE
secondary
#BEE1AA
accent
#EB3D7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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