#AB56CC#AB56CC

#AB56CC is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.4% C 0.188 H 315.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB56CC
RGBrgb(171, 86, 204)
HSLhsl(283, 54%, 57%)
HSVhsv(283, 58%, 80%)
CMYKcmyk(16.2%, 57.8%, 0%, 20%)
CIE-LABlab(51.47, 53.44, -46.99)
CIE-LCHlch(51.47, 71.16, 318.68°)
OKLaboklab(60.43% 0.1338 -0.1314)
OKLCHoklch(60.43% 0.188 315.5)
XYZxyz(31.0198, 19.6742, 59.2785)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CC #77CC56
analogous
#7056CC #AB56CC #CC56B2
triadic
#AB56CC #CCAB56 #56CCAB
tetradic
#AB56CC #CC7056 #77CC56 #56B2CC
square
#AB56CC #CC7056 #77CC56 #56B2CC
split-complementary
#AB56CC #B2CC56 #56CC70
monochromatic
#682781 #8D35B0 #AB56CC #C285DA #DAB4E8

Accessibility & contrast

On white

4.26
#AB56CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB56CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CC#FFFFFF#000000##000000
##AB56CC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3676D0
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#A96A89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab56cc;
/* rgb */ color: rgb(171, 86, 204);
/* oklch */ color: oklch(60.4% 0.188 315.5);
Tailwind
colors: {
  custom: {
    50: '#c78adc',
    500: '#ab56cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab56cc;
$custom-light: #c78adc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56cc",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 283.22,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60433,
    "c": 0.18753,
    "h": 315.5
  },
  "luminance": 0.19673
}

Semantic roles & 50–950 ramp

primary
#AB56CC
secondary
#B4D7A7
accent
#DD4B74
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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