#AB56CA#AB56CA

#AB56CA is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.3% C 0.185 H 316.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB56CA
RGBrgb(171, 86, 202)
HSLhsl(284, 52%, 56%)
HSVhsv(284, 57%, 79%)
CMYKcmyk(15.3%, 57.4%, 0%, 20.8%)
CIE-LABlab(51.36, 53.03, -46.01)
CIE-LCHlch(51.36, 70.21, 319.05°)
OKLaboklab(60.32% 0.1337 -0.1286)
OKLCHoklch(60.32% 0.185 316.1)
XYZxyz(30.7814, 19.5788, 58.0233)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CA #75CA56
analogous
#7156CA #AB56CA #CA56AF
triadic
#AB56CA #CAAB56 #56CAAB
tetradic
#AB56CA #CA7156 #75CA56 #56AFCA
square
#AB56CA #CA7156 #75CA56 #56AFCA
split-complementary
#AB56CA #AFCA56 #56CA71
monochromatic
#67287E #8D36AD #AB56CA #C285D9 #D9B3E7

Accessibility & contrast

On white

4.27
#AB56CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AB56CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CA#FFFFFF#000000##000000
##AB56CA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3875CE
Deuteranopia (green-blind)
#577DC7
Tritanopia (blue-blind)
#A96988
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab56ca;
/* rgb */ color: rgb(171, 86, 202);
/* oklch */ color: oklch(60.3% 0.185 316.1);
Tailwind
colors: {
  custom: {
    50: '#c78adb',
    500: '#ab56ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ca;
$custom-light: #c78adb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ca",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 283.966,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60318,
    "c": 0.18548,
    "h": 316.1
  },
  "luminance": 0.19578
}

Semantic roles & 50–950 ramp

primary
#AB56CA
secondary
#B3D6A6
accent
#DC4C72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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