#AB56CF#AB56CF

#AB56CF is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.6% C 0.191 H 314.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB56CF
RGBrgb(171, 86, 207)
HSLhsl(282, 56%, 57%)
HSVhsv(282, 58%, 81%)
CMYKcmyk(17.4%, 58.5%, 0%, 18.8%)
CIE-LABlab(51.63, 54.07, -48.44)
CIE-LCHlch(51.63, 72.59, 318.14°)
OKLaboklab(60.61% 0.1339 -0.1356)
OKLCHoklch(60.61% 0.191 314.6)
XYZxyz(31.3830, 19.8195, 61.1918)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56CF #7ACF56
analogous
#6F56CF #AB56CF #CF56B6
triadic
#AB56CF #CFAB56 #56CFAB
tetradic
#AB56CF #CF6F56 #7ACF56 #56B6CF
square
#AB56CF #CF6F56 #7ACF56 #56B6CF
split-complementary
#AB56CF #B6CF56 #56CF6F
monochromatic
#692685 #8E33B5 #AB56CF #C386DD #DAB5EA

Accessibility & contrast

On white

4.23
#AB56CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB56CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56CF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56CF#FFFFFF#000000##000000
##AB56CF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3276D3
Deuteranopia (green-blind)
#537DCC
Tritanopia (blue-blind)
#A86B8A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab56cf;
/* rgb */ color: rgb(171, 86, 207);
/* oklch */ color: oklch(60.6% 0.191 314.6);
Tailwind
colors: {
  custom: {
    50: '#c78ade',
    500: '#ab56cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab56cf;
$custom-light: #c78ade;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56cf",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 282.149,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60607,
    "c": 0.19059,
    "h": 314.6
  },
  "luminance": 0.19818
}

Semantic roles & 50–950 ramp

primary
#AB56CF
secondary
#B7D9A8
accent
#DF4975
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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