#AB56BA#AB56BA

#AB56BA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.4% C 0.169 H 321.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB56BA
RGBrgb(171, 86, 186)
HSLhsl(291, 42%, 53%)
HSVhsv(291, 54%, 73%)
CMYKcmyk(8.1%, 53.8%, 0%, 27.1%)
CIE-LABlab(50.52, 49.81, -38.11)
CIE-LCHlch(50.52, 62.72, 322.58°)
OKLaboklab(59.44% 0.1325 -0.1056)
OKLCHoklch(59.44% 0.169 321.4)
XYZxyz(28.9843, 18.8600, 48.5585)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56BA #65BA56
analogous
#7956BA #AB56BA #BA5697
triadic
#AB56BA #BAAB56 #56BAAB
tetradic
#AB56BA #BA7956 #65BA56 #5697BA
square
#AB56BA #BA7956 #65BA56 #5697BA
split-complementary
#AB56BA #97BA56 #56BA79
monochromatic
#612B6A #883D96 #AB56BA #C181CC #D6ADDD

Accessibility & contrast

On white

4.40
#AB56BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AB56BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56BA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56BA#FFFFFF#000000##000000
##AB56BA1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4572BD
Deuteranopia (green-blind)
#607CB7
Tritanopia (blue-blind)
#AD6480
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab56ba;
/* rgb */ color: rgb(171, 86, 186);
/* oklch */ color: oklch(59.4% 0.169 321.4);
Tailwind
colors: {
  custom: {
    50: '#c689cf',
    500: '#ab56ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ba;
$custom-light: #c689cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ba",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 291,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59435,
    "c": 0.16941,
    "h": 321.4
  },
  "luminance": 0.18859
}

Semantic roles & 50–950 ramp

primary
#AB56BA
secondary
#A7CBA0
accent
#D25669
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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