#AB56C8#AB56C8

#AB56C8 is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.2% C 0.183 H 316.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB56C8
RGBrgb(171, 86, 200)
HSLhsl(285, 51%, 56%)
HSVhsv(285, 57%, 78%)
CMYKcmyk(14.5%, 57%, 0%, 21.6%)
CIE-LABlab(51.25, 52.62, -45.04)
CIE-LCHlch(51.25, 69.26, 319.44°)
OKLaboklab(60.2% 0.1336 -0.1257)
OKLCHoklch(60.2% 0.183 316.7)
XYZxyz(30.5462, 19.4847, 56.7842)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56C8 #73C856
analogous
#7256C8 #AB56C8 #C856AC
triadic
#AB56C8 #C8AB56 #56C8AB
tetradic
#AB56C8 #C87256 #73C856 #56ACC8
square
#AB56C8 #C87256 #73C856 #56ACC8
split-complementary
#AB56C8 #ACC856 #56C872
monochromatic
#66287B #8C37AA #AB56C8 #C284D7 #D9B2E6

Accessibility & contrast

On white

4.29
#AB56C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB56C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56C8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56C8#FFFFFF#000000##000000
##AB56C81.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A75CC
Deuteranopia (green-blind)
#587DC5
Tritanopia (blue-blind)
#AA6987
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab56c8;
/* rgb */ color: rgb(171, 86, 200);
/* oklch */ color: oklch(60.2% 0.183 316.7);
Tailwind
colors: {
  custom: {
    50: '#c78ad9',
    500: '#ab56c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab56c8;
$custom-light: #c78ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56c8",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 284.737,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60204,
    "c": 0.18345,
    "h": 316.7
  },
  "luminance": 0.19484
}

Semantic roles & 50–950 ramp

primary
#AB56C8
secondary
#B1D4A5
accent
#DA4D71
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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