#AB51DA#AB51DA

#AB51DA is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.6% C 0.209 H 312.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB51DA
RGBrgb(171, 81, 218)
HSLhsl(279, 65%, 59%)
HSVhsv(279, 63%, 85%)
CMYKcmyk(21.6%, 62.8%, 0%, 14.5%)
CIE-LABlab(51.39, 58.77, -55.10)
CIE-LCHlch(51.39, 80.56, 316.85°)
OKLaboklab(60.63% 0.1399 -0.1551)
OKLCHoklch(60.63% 0.209 312.1)
XYZxyz(32.3896, 19.6056, 68.3941)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DA #80DA51
analogous
#6651DA #AB51DA #DA51C4
triadic
#AB51DA #DAAB51 #51DAAB
tetradic
#AB51DA #DA6651 #80DA51 #51C4DA
square
#AB51DA #DA6651 #80DA51 #51C4DA
split-complementary
#AB51DA #C4DA51 #51DA66
monochromatic
#6A1F92 #8F2AC4 #AB51DA #C383E5 #DCB6EF

Accessibility & contrast

On white

4.27
#AB51DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AB51DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DA#FFFFFF#000000##000000
##AB51DA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1076DE
Deuteranopia (green-blind)
#467CD7
Tritanopia (blue-blind)
#A66B8E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab51da;
/* rgb */ color: rgb(171, 81, 218);
/* oklch */ color: oklch(60.6% 0.209 312.1);
Tailwind
colors: {
  custom: {
    50: '#c887e6',
    500: '#ab51da',
    950: '#000000',
  },
}
SCSS
$custom: #ab51da;
$custom-light: #c887e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51da",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 279.416,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60635,
    "c": 0.20889,
    "h": 312.1
  },
  "luminance": 0.19605
}

Semantic roles & 50–950 ramp

primary
#AB51DA
secondary
#BBDEA8
accent
#E8407A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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