#AB56CE#AB56CE

#AB56CE is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.5% C 0.190 H 314.9°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB56CE
RGBrgb(171, 86, 206)
HSLhsl(283, 55%, 57%)
HSVhsv(283, 58%, 81%)
CMYKcmyk(17%, 58.3%, 0%, 19.2%)
CIE-LABlab(51.58, 53.86, -47.96)
CIE-LCHlch(51.58, 72.11, 318.32°)
OKLaboklab(60.55% 0.1339 -0.1342)
OKLCHoklch(60.55% 0.19 314.9)
XYZxyz(31.2612, 19.7707, 60.5499)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CE #79CE56
analogous
#6F56CE #AB56CE #CE56B5
triadic
#AB56CE #CEAB56 #56CEAB
tetradic
#AB56CE #CE6F56 #79CE56 #56B5CE
square
#AB56CE #CE6F56 #79CE56 #56B5CE
split-complementary
#AB56CE #B5CE56 #56CE6F
monochromatic
#682683 #8E34B3 #AB56CE #C385DC #DAB5EA

Accessibility & contrast

On white

4.24
#AB56CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB56CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CE#FFFFFF#000000##000000
##AB56CE1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3376D2
Deuteranopia (green-blind)
#547DCB
Tritanopia (blue-blind)
#A86B8A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab56ce;
/* rgb */ color: rgb(171, 86, 206);
/* oklch */ color: oklch(60.5% 0.190 314.9);
Tailwind
colors: {
  custom: {
    50: '#c78add',
    500: '#ab56ce',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ce;
$custom-light: #c78add;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ce",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 282.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60549,
    "c": 0.18957,
    "h": 314.9
  },
  "luminance": 0.1977
}

Semantic roles & 50–950 ramp

primary
#AB56CE
secondary
#B6D8A8
accent
#DE4975
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CE

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

Preview Lab → · Contrast checker → · Palette generator →

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