#AB56D3#AB56D3

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

Color values

HEX#AB56D3
RGBrgb(171, 86, 211)
HSLhsl(281, 59%, 58%)
HSVhsv(281, 59%, 83%)
CMYKcmyk(19%, 59.2%, 0%, 17.3%)
CIE-LABlab(51.86, 54.91, -50.36)
CIE-LCHlch(51.86, 74.51, 317.47°)
OKLaboklab(60.84% 0.134 -0.1413)
OKLCHoklch(60.84% 0.195 313.5)
XYZxyz(31.8782, 20.0175, 63.7999)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56D3 #7ED356
analogous
#6C56D3 #AB56D3 #D356BC
triadic
#AB56D3 #D3AB56 #56D3AB
tetradic
#AB56D3 #D36C56 #7ED356 #56BCD3
square
#AB56D3 #D36C56 #7ED356 #56BCD3
split-complementary
#AB56D3 #BCD356 #56D36C
monochromatic
#6A248B #8F31BB #AB56D3 #C387E0 #DBB7EC

Accessibility & contrast

On white

4.20
#AB56D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AB56D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56D3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56D3#FFFFFF#000000##000000
##AB56D31.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D77D7
Deuteranopia (green-blind)
#507ED0
Tritanopia (blue-blind)
#A76C8C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab56d3;
/* rgb */ color: rgb(171, 86, 211);
/* oklch */ color: oklch(60.8% 0.195 313.5);
Tailwind
colors: {
  custom: {
    50: '#c78ae1',
    500: '#ab56d3',
    950: '#000000',
  },
}
SCSS
$custom: #ab56d3;
$custom-light: #c78ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56d3",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 211
  },
  "hsl": {
    "h": 280.8,
    "s": 58.685,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60844,
    "c": 0.19469,
    "h": 313.5
  },
  "luminance": 0.20017
}

Semantic roles & 50–950 ramp

primary
#AB56D3
secondary
#B9DBAA
accent
#E24678
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56D3

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

Preview Lab → · Contrast checker → · Palette generator →

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