#AB56BC#AB56BC

#AB56BC is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.5% C 0.171 H 320.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB56BC
RGBrgb(171, 86, 188)
HSLhsl(290, 43%, 54%)
HSVhsv(290, 54%, 74%)
CMYKcmyk(9%, 54.3%, 0%, 26.3%)
CIE-LABlab(50.62, 50.20, -39.11)
CIE-LCHlch(50.62, 63.64, 322.08°)
OKLaboklab(59.54% 0.1327 -0.1085)
OKLCHoklch(59.54% 0.171 320.7)
XYZxyz(29.1984, 18.9456, 49.6860)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56BC #67BC56
analogous
#7856BC #AB56BC #BC569A
triadic
#AB56BC #BCAB56 #56BCAB
tetradic
#AB56BC #BC7856 #67BC56 #569ABC
square
#AB56BC #BC7856 #67BC56 #569ABC
split-complementary
#AB56BC #9ABC56 #56BC78
monochromatic
#622B6D #893C98 #AB56BC #C182CD #D7AEDF

Accessibility & contrast

On white

4.39
#AB56BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AB56BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56BC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56BC#FFFFFF#000000##000000
##AB56BC1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#5F7CB9
Tritanopia (blue-blind)
#AC6581
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab56bc;
/* rgb */ color: rgb(171, 86, 188);
/* oklch */ color: oklch(59.5% 0.171 320.7);
Tailwind
colors: {
  custom: {
    50: '#c689d0',
    500: '#ab56bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab56bc;
$custom-light: #c689d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56bc",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 290,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59542,
    "c": 0.17139,
    "h": 320.7
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#AB56BC
secondary
#A8CDA1
accent
#D3556A
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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