#AB56DC#AB56DC

#AB56DC is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.4% C 0.204 H 311.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AB56DC
RGBrgb(171, 86, 220)
HSLhsl(278, 66%, 60%)
HSVhsv(278, 61%, 86%)
CMYKcmyk(22.3%, 60.9%, 0%, 13.7%)
CIE-LABlab(52.38, 56.83, -54.65)
CIE-LCHlch(52.38, 78.84, 316.12°)
OKLaboklab(61.39% 0.134 -0.1538)
OKLCHoklch(61.39% 0.204 311.1)
XYZxyz(33.0382, 20.4815, 69.9092)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56DC #87DC56
analogous
#6856DC #AB56DC #DC56CA
triadic
#AB56DC #DCAB56 #56DCAB
tetradic
#AB56DC #DC6856 #87DC56 #56CADC
square
#AB56DC #DC6856 #87DC56 #56CADC
split-complementary
#AB56DC #CADC56 #56DC68
monochromatic
#6C2098 #902ACB #AB56DC #C489E6 #DDBBF1

Accessibility & contrast

On white

4.12
#AB56DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AB56DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56DC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56DC#FFFFFF#000000##000000
##AB56DC1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F79E0
Deuteranopia (green-blind)
#497FD9
Tritanopia (blue-blind)
#A56F91
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab56dc;
/* rgb */ color: rgb(171, 86, 220);
/* oklch */ color: oklch(61.4% 0.204 311.1);
Tailwind
colors: {
  custom: {
    50: '#c78ae7',
    500: '#ab56dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab56dc;
$custom-light: #c78ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56dc",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 278.06,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.61389,
    "c": 0.20398,
    "h": 311.1
  },
  "luminance": 0.20481
}

Semantic roles & 50–950 ramp

primary
#AB56DC
secondary
#C0E1AD
accent
#E93F7D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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