#AB319E#AB319E

#AB319E is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.7% C 0.197 H 332.6°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB319E
RGBrgb(171, 49, 158)
HSLhsl(306, 55%, 43%)
HSVhsv(306, 71%, 67%)
CMYKcmyk(0%, 71.3%, 7.6%, 32.9%)
CIE-LABlab(43.25, 60.93, -33.06)
CIE-LCHlch(43.25, 69.32, 331.52°)
OKLaboklab(53.68% 0.1753 -0.0907)
OKLCHoklch(53.68% 0.197 332.6)
XYZxyz(24.0645, 13.3251, 33.6457)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB319E #31AB3E
analogous
#7B31AB #AB319E #AB3161
triadic
#AB319E #9EAB31 #319EAB
tetradic
#AB319E #AB7B31 #31AB3E #3161AB
square
#AB319E #AB7B31 #31AB3E #3161AB
split-complementary
#AB319E #61AB31 #31AB7B
monochromatic
#4C1646 #7B2372 #AB319E #CC4DBF #DA7DD0

Accessibility & contrast

On white

5.73
#AB319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB319E
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB319E#FFFFFF#000000##FFFFFF
##AB319E1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5BA1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#B23D64
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab319e;
/* rgb */ color: rgb(171, 49, 158);
/* oklch */ color: oklch(53.7% 0.197 332.6);
Tailwind
colors: {
  custom: {
    50: '#c875bb',
    500: '#ab319e',
    950: '#000000',
  },
}
SCSS
$custom: #ab319e;
$custom-light: #c875bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab319e",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 306.393,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.19742,
    "h": 332.6
  },
  "luminance": 0.13323
}

Semantic roles & 50–950 ramp

primary
#AB319E
secondary
#75C27E
accent
#DF5949
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB319E

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

Preview Lab → · Contrast checker → · Palette generator →

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