#AB56D4#AB56D4

#AB56D4 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.9% C 0.196 H 313.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AB56D4
RGBrgb(171, 86, 212)
HSLhsl(280, 59%, 58%)
HSVhsv(280, 59%, 83%)
CMYKcmyk(19.3%, 59.4%, 0%, 16.9%)
CIE-LABlab(51.91, 55.12, -50.84)
CIE-LCHlch(51.91, 74.99, 317.31°)
OKLaboklab(60.9% 0.134 -0.1427)
OKLCHoklch(60.9% 0.196 313.2)
XYZxyz(32.0040, 20.0678, 64.4622)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56D4 #7FD456
analogous
#6C56D4 #AB56D4 #D456BE
triadic
#AB56D4 #D4AB56 #56D4AB
tetradic
#AB56D4 #D46C56 #7FD456 #56BED4
square
#AB56D4 #D46C56 #7FD456 #56BED4
split-complementary
#AB56D4 #BED456 #56D46C
monochromatic
#6A248C #8F30BD #AB56D4 #C387E0 #DBB8ED

Accessibility & contrast

On white

4.19
#AB56D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AB56D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56D4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56D4#FFFFFF#000000##000000
##AB56D41.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D8
Deuteranopia (green-blind)
#507ED1
Tritanopia (blue-blind)
#A76D8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab56d4;
/* rgb */ color: rgb(171, 86, 212);
/* oklch */ color: oklch(60.9% 0.196 313.2);
Tailwind
colors: {
  custom: {
    50: '#c78ae2',
    500: '#ab56d4',
    950: '#000000',
  },
}
SCSS
$custom: #ab56d4;
$custom-light: #c78ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56d4",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 212
  },
  "hsl": {
    "h": 280.476,
    "s": 59.434,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60903,
    "c": 0.19572,
    "h": 313.2
  },
  "luminance": 0.20067
}

Semantic roles & 50–950 ramp

primary
#AB56D4
secondary
#BADCAA
accent
#E34578
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56D4

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

Preview Lab → · Contrast checker → · Palette generator →

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