#AB56D2#AB56D2

#AB56D2 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.194 H 313.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB56D2
RGBrgb(171, 86, 210)
HSLhsl(281, 58%, 58%)
HSVhsv(281, 59%, 82%)
CMYKcmyk(18.6%, 59%, 0%, 17.6%)
CIE-LABlab(51.80, 54.70, -49.88)
CIE-LCHlch(51.80, 74.03, 317.63°)
OKLaboklab(60.78% 0.134 -0.1399)
OKLCHoklch(60.78% 0.194 313.8)
XYZxyz(31.7533, 19.9676, 63.1417)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56D2 #7DD256
analogous
#6D56D2 #AB56D2 #D256BB
triadic
#AB56D2 #D2AB56 #56D2AB
tetradic
#AB56D2 #D26D56 #7DD256 #56BBD2
square
#AB56D2 #D26D56 #7DD256 #56BBD2
split-complementary
#AB56D2 #BBD256 #56D26D
monochromatic
#692589 #8F31B9 #AB56D2 #C386DF #DBB7EC

Accessibility & contrast

On white

4.21
#AB56D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB56D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56D2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56D2#FFFFFF#000000##000000
##AB56D21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F77D6
Deuteranopia (green-blind)
#517ECF
Tritanopia (blue-blind)
#A76C8C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab56d2;
/* rgb */ color: rgb(171, 86, 210);
/* oklch */ color: oklch(60.8% 0.194 313.8);
Tailwind
colors: {
  custom: {
    50: '#c78ae0',
    500: '#ab56d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab56d2;
$custom-light: #c78ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56d2",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 281.129,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60784,
    "c": 0.19367,
    "h": 313.8
  },
  "luminance": 0.19967
}

Semantic roles & 50–950 ramp

primary
#AB56D2
secondary
#B9DBA9
accent
#E14777
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56D2

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

Preview Lab → · Contrast checker → · Palette generator →

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