#AB37CA#AB37CA

#AB37CA is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.226 H 318.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AB37CA
RGBrgb(171, 55, 202)
HSLhsl(287, 58%, 50%)
HSVhsv(287, 73%, 79%)
CMYKcmyk(15.3%, 72.8%, 0%, 20.8%)
CIE-LABlab(46.52, 66.43, -53.74)
CIE-LCHlch(46.52, 85.45, 321.03°)
OKLaboklab(56.83% 0.1686 -0.151)
OKLCHoklch(56.83% 0.226 318.2)
XYZxyz(28.8200, 15.6559, 57.3695)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB37CA #56CA37
analogous
#6137CA #AB37CA #CA379F
triadic
#AB37CA #CAAB37 #37CAAB
tetradic
#AB37CA #CA6137 #56CA37 #379FCA
square
#AB37CA #CA6137 #56CA37 #379FCA
split-complementary
#AB37CA #9FCA37 #37CA61
monochromatic
#5A1C6A #83299B #AB37CA #BF67D7 #D498E4

Accessibility & contrast

On white

5.08
#AB37CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AB37CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB37CA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB37CA#FFFFFF#000000##FFFFFF
##AB37CA1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#3E72C7
Tritanopia (blue-blind)
#AA557E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab37ca;
/* rgb */ color: rgb(171, 55, 202);
/* oklch */ color: oklch(56.8% 0.226 318.2);
Tailwind
colors: {
  custom: {
    50: '#c879db',
    500: '#ab37ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab37ca;
$custom-light: #c879db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab37ca",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 287.347,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56828,
    "c": 0.22633,
    "h": 318.2
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#AB37CA
secondary
#9BCF8E
accent
#E14667
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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