#AB56CD#AB56CD

#AB56CD is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.5% C 0.189 H 315.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB56CD
RGBrgb(171, 86, 205)
HSLhsl(283, 54%, 57%)
HSVhsv(283, 58%, 80%)
CMYKcmyk(16.6%, 58%, 0%, 19.6%)
CIE-LABlab(51.52, 53.65, -47.47)
CIE-LCHlch(51.52, 71.64, 318.50°)
OKLaboklab(60.49% 0.1338 -0.1328)
OKLCHoklch(60.49% 0.189 315.2)
XYZxyz(31.1401, 19.7223, 59.9122)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CD #78CD56
analogous
#7056CD #AB56CD #CD56B4
triadic
#AB56CD #CDAB56 #56CDAB
tetradic
#AB56CD #CD7056 #78CD56 #56B4CD
square
#AB56CD #CD7056 #78CD56 #56B4CD
split-complementary
#AB56CD #B4CD56 #56CD70
monochromatic
#682682 #8E34B1 #AB56CD #C285DB #DAB4E9

Accessibility & contrast

On white

4.25
#AB56CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB56CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CD#FFFFFF#000000##000000
##AB56CD1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3476D1
Deuteranopia (green-blind)
#557DCA
Tritanopia (blue-blind)
#A96A89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab56cd;
/* rgb */ color: rgb(171, 86, 205);
/* oklch */ color: oklch(60.5% 0.189 315.2);
Tailwind
colors: {
  custom: {
    50: '#c78add',
    500: '#ab56cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab56cd;
$custom-light: #c78add;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56cd",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 282.857,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.18854,
    "h": 315.2
  },
  "luminance": 0.19721
}

Semantic roles & 50–950 ramp

primary
#AB56CD
secondary
#B5D8A7
accent
#DE4A74
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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