#AB319F#AB319F

#AB319F is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.7% C 0.198 H 332.3°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AB319F
RGBrgb(171, 49, 159)
HSLhsl(306, 55%, 43%)
HSVhsv(306, 71%, 67%)
CMYKcmyk(0%, 71.3%, 7%, 32.9%)
CIE-LABlab(43.30, 61.09, -33.58)
CIE-LCHlch(43.30, 69.71, 331.20°)
OKLaboklab(53.73% 0.1754 -0.0922)
OKLCHoklch(53.73% 0.198 332.3)
XYZxyz(24.1510, 13.3597, 34.1009)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB319F #31AB3D
analogous
#7A31AB #AB319F #AB3162
triadic
#AB319F #9FAB31 #319FAB
tetradic
#AB319F #AB7A31 #31AB3D #3162AB
square
#AB319F #AB7A31 #31AB3D #3162AB
split-complementary
#AB319F #62AB31 #31AB7A
monochromatic
#4C1647 #7B2373 #AB319F #CC4DC0 #DA7DD1

Accessibility & contrast

On white

5.72
#AB319F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB319F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB319F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB319F#FFFFFF#000000##FFFFFF
##AB319F1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5BA2
Deuteranopia (green-blind)
#586C9C
Tritanopia (blue-blind)
#B23E64
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab319f;
/* rgb */ color: rgb(171, 49, 159);
/* oklch */ color: oklch(53.7% 0.198 332.3);
Tailwind
colors: {
  custom: {
    50: '#c875bc',
    500: '#ab319f',
    950: '#000000',
  },
}
SCSS
$custom: #ab319f;
$custom-light: #c875bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab319f",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 305.902,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.19818,
    "h": 332.3
  },
  "luminance": 0.13358
}

Semantic roles & 50–950 ramp

primary
#AB319F
secondary
#75C27D
accent
#DF5849
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB319F

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

Preview Lab → · Contrast checker → · Palette generator →

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