#AB36C7#AB36C7

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

Color values

HEX#AB36C7
RGBrgb(171, 54, 199)
HSLhsl(288, 57%, 50%)
HSVhsv(288, 73%, 78%)
CMYKcmyk(14.1%, 72.9%, 0%, 22%)
CIE-LABlab(46.21, 66.22, -52.51)
CIE-LCHlch(46.21, 84.52, 321.59°)
OKLaboklab(56.55% 0.1698 -0.1474)
OKLCHoklch(56.55% 0.225 319.1)
XYZxyz(28.4212, 15.4211, 55.5013)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB36C7 #52C736
analogous
#6336C7 #AB36C7 #C7369A
triadic
#AB36C7 #C7AB36 #36C7AB
tetradic
#AB36C7 #C76336 #52C736 #369AC7
square
#AB36C7 #C76336 #52C736 #369AC7
split-complementary
#AB36C7 #9AC736 #36C763
monochromatic
#581C67 #822997 #AB36C7 #C065D5 #D395E2

Accessibility & contrast

On white

5.14
#AB36C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB36C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB36C7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB36C7#FFFFFF#000000##FFFFFF
##AB36C71.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#4071C4
Tritanopia (blue-blind)
#AB537C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab36c7;
/* rgb */ color: rgb(171, 54, 199);
/* oklch */ color: oklch(56.5% 0.225 319.1);
Tailwind
colors: {
  custom: {
    50: '#c878d9',
    500: '#ab36c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab36c7;
$custom-light: #c878d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab36c7",
  "rgb": {
    "r": 171,
    "g": 54,
    "b": 199
  },
  "hsl": {
    "h": 288.414,
    "s": 57.312,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56545,
    "c": 0.22486,
    "h": 319.1
  },
  "luminance": 0.1542
}

Semantic roles & 50–950 ramp

primary
#AB36C7
secondary
#98CE8B
accent
#E14765
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB36C7

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

Preview Lab → · Contrast checker → · Palette generator →

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