#AB36C6#AB36C6

#AB36C6 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.224 H 319.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB36C6
RGBrgb(171, 54, 198)
HSLhsl(289, 57%, 49%)
HSVhsv(289, 73%, 78%)
CMYKcmyk(13.6%, 72.7%, 0%, 22.4%)
CIE-LABlab(46.14, 66.04, -52.03)
CIE-LCHlch(46.14, 84.07, 321.76°)
OKLaboklab(56.48% 0.1699 -0.1459)
OKLCHoklch(56.48% 0.224 319.3)
XYZxyz(28.3055, 15.3749, 54.8918)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB36C6 #51C636
analogous
#6336C6 #AB36C6 #C63699
triadic
#AB36C6 #C6AB36 #36C6AB
tetradic
#AB36C6 #C66336 #51C636 #3699C6
square
#AB36C6 #C66336 #51C636 #3699C6
split-complementary
#AB36C6 #99C636 #36C663
monochromatic
#581C66 #812996 #AB36C6 #C064D5 #D394E2

Accessibility & contrast

On white

5.15
#AB36C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AB36C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB36C6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB36C6#FFFFFF#000000##FFFFFF
##AB36C61.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CA
Deuteranopia (green-blind)
#4171C3
Tritanopia (blue-blind)
#AB537B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab36c6;
/* rgb */ color: rgb(171, 54, 198);
/* oklch */ color: oklch(56.5% 0.224 319.3);
Tailwind
colors: {
  custom: {
    50: '#c878d8',
    500: '#ab36c6',
    950: '#000000',
  },
}
SCSS
$custom: #ab36c6;
$custom-light: #c878d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab36c6",
  "rgb": {
    "r": 171,
    "g": 54,
    "b": 198
  },
  "hsl": {
    "h": 288.75,
    "s": 57.143,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56481,
    "c": 0.224,
    "h": 319.3
  },
  "luminance": 0.15373
}

Semantic roles & 50–950 ramp

primary
#AB36C6
secondary
#97CD8B
accent
#E04764
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB36C6

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

Preview Lab → · Contrast checker → · Palette generator →

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