#AB56B2#AB56B2

#AB56B2 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.0% C 0.162 H 324.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB56B2
RGBrgb(171, 86, 178)
HSLhsl(295, 37%, 52%)
HSVhsv(295, 52%, 70%)
CMYKcmyk(3.9%, 51.7%, 0%, 30.2%)
CIE-LABlab(50.13, 48.26, -34.07)
CIE-LCHlch(50.13, 59.08, 324.78°)
OKLaboklab(59.02% 0.1315 -0.094)
OKLCHoklch(59.02% 0.162 324.5)
XYZxyz(28.1575, 18.5293, 44.2042)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56B2 #5DB256
analogous
#7D56B2 #AB56B2 #B2568B
triadic
#AB56B2 #B2AB56 #56B2AB
tetradic
#AB56B2 #B27D56 #5DB256 #568BB2
square
#AB56B2 #B27D56 #5DB256 #568BB2
split-complementary
#AB56B2 #8BB256 #56B27D
monochromatic
#5D2C61 #863F8B #AB56B2 #C080C5 #D5AAD8

Accessibility & contrast

On white

4.46
#AB56B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB56B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56B2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56B2#FFFFFF#000000##000000
##AB56B21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A71B5
Deuteranopia (green-blind)
#647BAF
Tritanopia (blue-blind)
#AE617C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab56b2;
/* rgb */ color: rgb(171, 86, 178);
/* oklch */ color: oklch(59.0% 0.162 324.5);
Tailwind
colors: {
  custom: {
    50: '#c689c9',
    500: '#ab56b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab56b2;
$custom-light: #c689c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56b2",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 295.435,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59019,
    "c": 0.16161,
    "h": 324.5
  },
  "luminance": 0.18528
}

Semantic roles & 50–950 ramp

primary
#AB56B2
secondary
#A1C69E
accent
#CD5A63
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AB56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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