#AB50DC#AB50DC

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

Color values

HEX#AB50DC
RGBrgb(171, 80, 220)
HSLhsl(279, 67%, 59%)
HSVhsv(279, 64%, 86%)
CMYKcmyk(22.3%, 63.6%, 0%, 13.7%)
CIE-LABlab(51.34, 59.66, -56.31)
CIE-LCHlch(51.34, 82.04, 316.66°)
OKLaboklab(60.64% 0.141 -0.1587)
OKLCHoklch(60.64% 0.212 311.6)
XYZxyz(32.5791, 19.5634, 69.7562)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50DC #81DC50
analogous
#6550DC #AB50DC #DC50C7
triadic
#AB50DC #DCAB50 #50DCAB
tetradic
#AB50DC #DC6550 #81DC50 #50C7DC
square
#AB50DC #DC6550 #81DC50 #50C7DC
split-complementary
#AB50DC #C7DC50 #50DC65
monochromatic
#6B1E94 #8F28C7 #AB50DC #C383E6 #DCB6F0

Accessibility & contrast

On white

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

On black

4.91
#AB50DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50DC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50DC#FFFFFF#000000##000000
##AB50DC1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E0
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#A56B8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab50dc;
/* rgb */ color: rgb(171, 80, 220);
/* oklch */ color: oklch(60.6% 0.212 311.6);
Tailwind
colors: {
  custom: {
    50: '#c887e7',
    500: '#ab50dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab50dc;
$custom-light: #c887e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50dc",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 220
  },
  "hsl": {
    "h": 279,
    "s": 66.667,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60638,
    "c": 0.21227,
    "h": 311.6
  },
  "luminance": 0.19563
}

Semantic roles & 50–950 ramp

primary
#AB50DC
secondary
#BCDFA8
accent
#EA3E7A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB50DC

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

Preview Lab → · Contrast checker → · Palette generator →

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