#AB56C4#AB56C4

#AB56C4 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.0% C 0.179 H 318.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB56C4
RGBrgb(171, 86, 196)
HSLhsl(286, 48%, 55%)
HSVhsv(286, 56%, 77%)
CMYKcmyk(12.8%, 56.1%, 0%, 23.1%)
CIE-LABlab(51.04, 51.80, -43.08)
CIE-LCHlch(51.04, 67.37, 320.26°)
OKLaboklab(59.98% 0.1333 -0.12)
OKLCHoklch(59.98% 0.179 318)
XYZxyz(30.0848, 19.3002, 54.3544)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56C4 #6FC456
analogous
#7456C4 #AB56C4 #C456A6
triadic
#AB56C4 #C4AB56 #56C4AB
tetradic
#AB56C4 #C47456 #6FC456 #56A6C4
square
#AB56C4 #C47456 #6FC456 #56A6C4
split-complementary
#AB56C4 #A6C456 #56C474
monochromatic
#652976 #8B39A4 #AB56C4 #C283D4 #D8B1E4

Accessibility & contrast

On white

4.32
#AB56C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AB56C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56C4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56C4#FFFFFF#000000##000000
##AB56C41.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D74C8
Deuteranopia (green-blind)
#5B7CC1
Tritanopia (blue-blind)
#AB6785
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab56c4;
/* rgb */ color: rgb(171, 86, 196);
/* oklch */ color: oklch(60.0% 0.179 318.0);
Tailwind
colors: {
  custom: {
    50: '#c789d6',
    500: '#ab56c4',
    950: '#000000',
  },
}
SCSS
$custom: #ab56c4;
$custom-light: #c789d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56c4",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 286.364,
    "s": 48.246,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59979,
    "c": 0.1794,
    "h": 318
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#AB56C4
secondary
#AED2A4
accent
#D8506F
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB56C4

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

Preview Lab → · Contrast checker → · Palette generator →

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