#AB56BB#AB56BB

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

Color values

HEX#AB56BB
RGBrgb(171, 86, 187)
HSLhsl(290, 43%, 54%)
HSVhsv(290, 54%, 73%)
CMYKcmyk(8.6%, 54%, 0%, 26.7%)
CIE-LABlab(50.57, 50.01, -38.61)
CIE-LCHlch(50.57, 63.18, 322.33°)
OKLaboklab(59.49% 0.1326 -0.107)
OKLCHoklch(59.49% 0.17 321.1)
XYZxyz(29.0910, 18.9026, 49.1203)
Luminance0.1890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56BB #66BB56
analogous
#7856BB #AB56BB #BB5698
triadic
#AB56BB #BBAB56 #56BBAB
tetradic
#AB56BB #BB7856 #66BB56 #5698BB
square
#AB56BB #BB7856 #66BB56 #5698BB
split-complementary
#AB56BB #98BB56 #56BB78
monochromatic
#612B6B #893D97 #AB56BB #C182CD #D6ADDE

Accessibility & contrast

On white

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

On black

4.78
#AB56BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56BB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56BB#FFFFFF#000000##000000
##AB56BB1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4472BE
Deuteranopia (green-blind)
#607CB8
Tritanopia (blue-blind)
#AD6480
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab56bb;
/* rgb */ color: rgb(171, 86, 187);
/* oklch */ color: oklch(59.5% 0.170 321.1);
Tailwind
colors: {
  custom: {
    50: '#c689d0',
    500: '#ab56bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab56bb;
$custom-light: #c689d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56bb",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 290.495,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59488,
    "c": 0.1704,
    "h": 321.1
  },
  "luminance": 0.18901
}

Semantic roles & 50–950 ramp

primary
#AB56BB
secondary
#A8CCA1
accent
#D25569
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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