#AB37AB#AB37AB

#AB37AB is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 54.9% C 0.200 H 327.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AB37AB
RGBrgb(171, 55, 171)
HSLhsl(300, 51%, 44%)
HSVhsv(300, 68%, 67%)
CMYKcmyk(0%, 67.8%, 0%, 32.9%)
CIE-LABlab(44.71, 60.86, -38.51)
CIE-LCHlch(44.71, 72.02, 327.68°)
OKLaboklab(54.95% 0.1697 -0.1065)
OKLCHoklch(54.95% 0.2 327.9)
XYZxyz(25.5111, 14.3323, 39.9429)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB37AB #37AB37
analogous
#7137AB #AB37AB #AB3771
triadic
#AB37AB #ABAB37 #37ABAB
tetradic
#AB37AB #AB7137 #37AB37 #3771AB
square
#AB37AB #AB7137 #37AB37 #3771AB
split-complementary
#AB37AB #71AB37 #37AB71
monochromatic
#4E194E #7D287D #AB37AB #C956C9 #D885D8

Accessibility & contrast

On white

5.43
#AB37AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AB37AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB37AB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB37AB#FFFFFF#000000##FFFFFF
##AB37AB1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#B0476D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab37ab;
/* rgb */ color: rgb(171, 55, 171);
/* oklch */ color: oklch(54.9% 0.200 327.9);
Tailwind
colors: {
  custom: {
    50: '#c778c4',
    500: '#ab37ab',
    950: '#000000',
  },
}
SCSS
$custom: #ab37ab;
$custom-light: #c778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab37ab",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54948,
    "c": 0.20035,
    "h": 327.9
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#AB37AB
secondary
#7CC17C
accent
#DB4D4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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