#AB36CD#AB36CD

#AB36CD is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.230 H 317.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB36CD
RGBrgb(171, 54, 205)
HSLhsl(286, 60%, 51%)
HSVhsv(286, 74%, 80%)
CMYKcmyk(16.6%, 73.7%, 0%, 19.6%)
CIE-LABlab(46.59, 67.35, -55.37)
CIE-LCHlch(46.59, 87.19, 320.58°)
OKLaboklab(56.94% 0.1692 -0.1557)
OKLCHoklch(56.94% 0.23 317.4)
XYZxyz(29.1316, 15.7053, 59.2427)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB36CD #58CD36
analogous
#5F36CD #AB36CD #CD36A3
triadic
#AB36CD #CDAB36 #36CDAB
tetradic
#AB36CD #CD5F36 #58CD36 #36A3CD
square
#AB36CD #CD5F36 #58CD36 #36A3CD
split-complementary
#AB36CD #A3CD36 #36CD5F
monochromatic
#5B1B6D #84279E #AB36CD #BF67D9 #D498E5

Accessibility & contrast

On white

5.07
#AB36CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AB36CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB36CD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB36CD#FFFFFF#000000##FFFFFF
##AB36CD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#3A72CA
Tritanopia (blue-blind)
#A9567F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab36cd;
/* rgb */ color: rgb(171, 54, 205);
/* oklch */ color: oklch(56.9% 0.230 317.4);
Tailwind
colors: {
  custom: {
    50: '#c879dd',
    500: '#ab36cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab36cd;
$custom-light: #c879dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab36cd",
  "rgb": {
    "r": 171,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 286.49,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56936,
    "c": 0.22999,
    "h": 317.4
  },
  "luminance": 0.15704
}

Semantic roles & 50–950 ramp

primary
#AB36CD
secondary
#9DD18E
accent
#E34468
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB36CD

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

Preview Lab → · Contrast checker → · Palette generator →

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