#AB319C#AB319C

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

Color values

HEX#AB319C
RGBrgb(171, 49, 156)
HSLhsl(307, 55%, 43%)
HSVhsv(307, 71%, 67%)
CMYKcmyk(0%, 71.3%, 8.8%, 32.9%)
CIE-LABlab(43.15, 60.62, -32.02)
CIE-LCHlch(43.15, 68.55, 332.16°)
OKLaboklab(53.57% 0.1752 -0.0877)
OKLCHoklch(53.57% 0.196 333.4)
XYZxyz(23.8938, 13.2568, 32.7464)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB319C #31AB40
analogous
#7D31AB #AB319C #AB315F
triadic
#AB319C #9CAB31 #319CAB
tetradic
#AB319C #AB7D31 #31AB40 #315FAB
square
#AB319C #AB7D31 #31AB40 #315FAB
split-complementary
#AB319C #5FAB31 #31AB7D
monochromatic
#4C1645 #7B2371 #AB319C #CC4DBC #DA7DCE

Accessibility & contrast

On white

5.75
#AB319C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB319C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB319C
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB319C#FFFFFF#000000##FFFFFF
##AB319C1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5B9F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B33C63
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab319c;
/* rgb */ color: rgb(171, 49, 156);
/* oklch */ color: oklch(53.6% 0.196 333.4);
Tailwind
colors: {
  custom: {
    50: '#c875b9',
    500: '#ab319c',
    950: '#000000',
  },
}
SCSS
$custom: #ab319c;
$custom-light: #c875b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab319c",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 307.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53571,
    "c": 0.19594,
    "h": 333.4
  },
  "luminance": 0.13255
}

Semantic roles & 50–950 ramp

primary
#AB319C
secondary
#75C27F
accent
#DF5B49
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB319C

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

Preview Lab → · Contrast checker → · Palette generator →

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