#AB37CC#AB37CC

#AB37CC is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.228 H 317.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB37CC
RGBrgb(171, 55, 204)
HSLhsl(287, 59%, 51%)
HSVhsv(287, 73%, 80%)
CMYKcmyk(16.2%, 73%, 0%, 20%)
CIE-LABlab(46.65, 66.81, -54.70)
CIE-LCHlch(46.65, 86.34, 320.69°)
OKLaboklab(56.96% 0.1684 -0.1538)
OKLCHoklch(56.96% 0.228 317.6)
XYZxyz(29.0583, 15.7512, 58.6247)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB37CC #58CC37
analogous
#6037CC #AB37CC #CC37A3
triadic
#AB37CC #CCAB37 #37CCAB
tetradic
#AB37CC #CC6037 #58CC37 #37A3CC
square
#AB37CC #CC6037 #58CC37 #37A3CC
split-complementary
#AB37CC #A3CC37 #37CC60
monochromatic
#5B1C6D #84289E #AB37CC #BF68D8 #D499E5

Accessibility & contrast

On white

5.06
#AB37CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AB37CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB37CC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB37CC#FFFFFF#000000##FFFFFF
##AB37CC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#3C72C9
Tritanopia (blue-blind)
#AA567F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab37cc;
/* rgb */ color: rgb(171, 55, 204);
/* oklch */ color: oklch(57.0% 0.228 317.6);
Tailwind
colors: {
  custom: {
    50: '#c879dc',
    500: '#ab37cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab37cc;
$custom-light: #c879dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab37cc",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 286.711,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56959,
    "c": 0.22805,
    "h": 317.6
  },
  "luminance": 0.1575
}

Semantic roles & 50–950 ramp

primary
#AB37CC
secondary
#9DD08E
accent
#E34568
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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