#AB56AA#AB56AA

#AB56AA is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.6% C 0.154 H 327.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB56AA
RGBrgb(171, 86, 170)
HSLhsl(301, 34%, 50%)
HSVhsv(301, 50%, 67%)
CMYKcmyk(0%, 49.7%, 0.6%, 32.9%)
CIE-LABlab(49.76, 46.77, -29.98)
CIE-LCHlch(49.76, 55.55, 327.34°)
OKLaboklab(58.62% 0.1303 -0.0822)
OKLCHoklch(58.62% 0.154 327.8)
XYZxyz(27.3776, 18.2173, 40.0967)
Luminance0.1822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56AA #56AB57
analogous
#8156AB #AB56AA #AB567F
triadic
#AB56AA #AAAB56 #56AAAB
tetradic
#AB56AA #AB8156 #56AB57 #567FAB
square
#AB56AA #AB8156 #56AB57 #567FAB
split-complementary
#AB56AA #7FAB56 #56AB81
monochromatic
#5A2D59 #834182 #AB56AA #BF7FBF #D4A8D3

Accessibility & contrast

On white

4.52
#AB56AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#AB56AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56AA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56AA#FFFFFF#000000##000000
##AB56AA1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6FAD
Deuteranopia (green-blind)
#687AA7
Tritanopia (blue-blind)
#B05F78
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab56aa;
/* rgb */ color: rgb(171, 86, 170);
/* oklch */ color: oklch(58.6% 0.154 327.8);
Tailwind
colors: {
  custom: {
    50: '#c689c3',
    500: '#ab56aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab56aa;
$custom-light: #c689c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56aa",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 300.706,
    "s": 33.597,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58622,
    "c": 0.15405,
    "h": 327.8
  },
  "luminance": 0.18216
}

Semantic roles & 50–950 ramp

primary
#AB56AA
secondary
#9BC19C
accent
#CA5F5E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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