#AB37A2#AB37A2

#AB37A2 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.5% C 0.193 H 331.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AB37A2
RGBrgb(171, 55, 162)
HSLhsl(305, 51%, 44%)
HSVhsv(305, 68%, 67%)
CMYKcmyk(0%, 67.8%, 5.3%, 32.9%)
CIE-LABlab(44.23, 59.37, -33.90)
CIE-LCHlch(44.23, 68.36, 330.27°)
OKLaboklab(54.45% 0.1692 -0.0932)
OKLCHoklch(54.45% 0.193 331.2)
XYZxyz(24.6823, 14.0008, 35.5779)
Luminance0.1400 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB37A2 #37AB40
analogous
#7A37AB #AB37A2 #AB3768
triadic
#AB37A2 #A2AB37 #37A2AB
tetradic
#AB37A2 #AB7A37 #37AB40 #3768AB
square
#AB37A2 #AB7A37 #37AB40 #3768AB
split-complementary
#AB37A2 #68AB37 #37AB7A
monochromatic
#4E194A #7D2876 #AB37A2 #C956C0 #D885D1

Accessibility & contrast

On white

5.53
#AB37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AB37A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB37A2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB37A2#FFFFFF#000000##FFFFFF
##AB37A21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#B24368
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab37a2;
/* rgb */ color: rgb(171, 55, 162);
/* oklch */ color: oklch(54.5% 0.193 331.2);
Tailwind
colors: {
  custom: {
    50: '#c778be',
    500: '#ab37a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab37a2;
$custom-light: #c778be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab37a2",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 304.655,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54454,
    "c": 0.1932,
    "h": 331.2
  },
  "luminance": 0.13999
}

Semantic roles & 50–950 ramp

primary
#AB37A2
secondary
#7CC182
accent
#DB584D
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AB37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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