#AB319D#AB319D

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

Color values

HEX#AB319D
RGBrgb(171, 49, 157)
HSLhsl(307, 55%, 43%)
HSVhsv(307, 71%, 67%)
CMYKcmyk(0%, 71.3%, 8.2%, 32.9%)
CIE-LABlab(43.20, 60.77, -32.54)
CIE-LCHlch(43.20, 68.93, 331.83°)
OKLaboklab(53.62% 0.1753 -0.0892)
OKLCHoklch(53.62% 0.197 333)
XYZxyz(23.9788, 13.2909, 33.1942)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB319D #31AB3F
analogous
#7C31AB #AB319D #AB3160
triadic
#AB319D #9DAB31 #319DAB
tetradic
#AB319D #AB7C31 #31AB3F #3160AB
square
#AB319D #AB7C31 #31AB3F #3160AB
split-complementary
#AB319D #60AB31 #31AB7C
monochromatic
#4C1646 #7B2371 #AB319D #CC4DBD #DA7DCF

Accessibility & contrast

On white

5.74
#AB319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB319D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB319D#FFFFFF#000000##FFFFFF
##AB319D1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#596C9A
Tritanopia (blue-blind)
#B33D63
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab319d;
/* rgb */ color: rgb(171, 49, 157);
/* oklch */ color: oklch(53.6% 0.197 333.0);
Tailwind
colors: {
  custom: {
    50: '#c875ba',
    500: '#ab319d',
    950: '#000000',
  },
}
SCSS
$custom: #ab319d;
$custom-light: #c875ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab319d",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 306.885,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53624,
    "c": 0.19668,
    "h": 333
  },
  "luminance": 0.13289
}

Semantic roles & 50–950 ramp

primary
#AB319D
secondary
#75C27E
accent
#DF5A49
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB319D

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

Preview Lab → · Contrast checker → · Palette generator →

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