#AB56CB#AB56CB

#AB56CB is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.4% C 0.186 H 315.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB56CB
RGBrgb(171, 86, 203)
HSLhsl(284, 53%, 57%)
HSVhsv(284, 58%, 80%)
CMYKcmyk(15.8%, 57.6%, 0%, 20.4%)
CIE-LABlab(51.41, 53.23, -46.50)
CIE-LCHlch(51.41, 70.68, 318.86°)
OKLaboklab(60.38% 0.1337 -0.13)
OKLCHoklch(60.38% 0.187 315.8)
XYZxyz(30.9002, 19.6263, 58.6489)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CB #76CB56
analogous
#7156CB #AB56CB #CB56B0
triadic
#AB56CB #CBAB56 #56CBAB
tetradic
#AB56CB #CB7156 #76CB56 #56B0CB
square
#AB56CB #CB7156 #76CB56 #56B0CB
split-complementary
#AB56CB #B0CB56 #56CB71
monochromatic
#67277F #8D36AE #AB56CB #C285D9 #DAB4E8

Accessibility & contrast

On white

4.26
#AB56CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB56CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CB#FFFFFF#000000##000000
##AB56CB1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3775CF
Deuteranopia (green-blind)
#567DC8
Tritanopia (blue-blind)
#A96A88
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab56cb;
/* rgb */ color: rgb(171, 86, 203);
/* oklch */ color: oklch(60.4% 0.186 315.8);
Tailwind
colors: {
  custom: {
    50: '#c78adb',
    500: '#ab56cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab56cb;
$custom-light: #c78adb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56cb",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 283.59,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60375,
    "c": 0.1865,
    "h": 315.8
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#AB56CB
secondary
#B4D6A6
accent
#DC4B73
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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