#AB37D2#AB37D2

#AB37D2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.4% C 0.233 H 316.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB37D2
RGBrgb(171, 55, 210)
HSLhsl(285, 63%, 52%)
HSVhsv(285, 74%, 82%)
CMYKcmyk(18.6%, 73.8%, 0%, 17.6%)
CIE-LABlab(47.03, 67.95, -57.53)
CIE-LCHlch(47.03, 89.03, 319.75°)
OKLaboklab(57.36% 0.1677 -0.1621)
OKLCHoklch(57.36% 0.233 316)
XYZxyz(29.7918, 16.0446, 62.4879)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB37D2 #5ED237
analogous
#5E37D2 #AB37D2 #D237AC
triadic
#AB37D2 #D2AB37 #37D2AB
tetradic
#AB37D2 #D25E37 #5ED237 #37ACD2
square
#AB37D2 #D25E37 #5ED237 #37ACD2
split-complementary
#AB37D2 #ACD237 #37D25E
monochromatic
#5E1A74 #8625A6 #AB37D2 #C069DD #D59BE8

Accessibility & contrast

On white

4.99
#AB37D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AB37D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB37D2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB37D2#FFFFFF#000000##FFFFFF
##AB37D21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#3573CF
Tritanopia (blue-blind)
#A85982
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab37d2;
/* rgb */ color: rgb(171, 55, 210);
/* oklch */ color: oklch(57.4% 0.233 316.0);
Tailwind
colors: {
  custom: {
    50: '#c879e1',
    500: '#ab37d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab37d2;
$custom-light: #c879e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab37d2",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 284.903,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57356,
    "c": 0.23325,
    "h": 316
  },
  "luminance": 0.16043
}

Semantic roles & 50–950 ramp

primary
#AB37D2
secondary
#A2D490
accent
#E6416B
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB37D2

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

Preview Lab → · Contrast checker → · Palette generator →

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