#AB3197#AB3197

#AB3197 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.3% C 0.192 H 335.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AB3197
RGBrgb(171, 49, 151)
HSLhsl(310, 55%, 43%)
HSVhsv(310, 71%, 67%)
CMYKcmyk(0%, 71.3%, 11.7%, 32.9%)
CIE-LABlab(42.90, 59.85, -29.40)
CIE-LCHlch(42.90, 66.68, 333.84°)
OKLaboklab(53.31% 0.1748 -0.0802)
OKLCHoklch(53.31% 0.192 335.3)
XYZxyz(23.4791, 13.0910, 30.5624)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3197 #31AB45
analogous
#8231AB #AB3197 #AB315A
triadic
#AB3197 #97AB31 #3197AB
tetradic
#AB3197 #AB8231 #31AB45 #315AAB
square
#AB3197 #AB8231 #31AB45 #315AAB
split-complementary
#AB3197 #5AAB31 #31AB82
monochromatic
#4C1643 #7B236D #AB3197 #CC4DB7 #DA7DCA

Accessibility & contrast

On white

5.80
#AB3197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB3197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3197
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3197#FFFFFF#000000##FFFFFF
##AB31971.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#5B6C94
Tritanopia (blue-blind)
#B43A60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab3197;
/* rgb */ color: rgb(171, 49, 151);
/* oklch */ color: oklch(53.3% 0.192 335.3);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ab3197',
    950: '#000000',
  },
}
SCSS
$custom: #ab3197;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3197",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 309.836,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53312,
    "c": 0.19228,
    "h": 335.3
  },
  "luminance": 0.13089
}

Semantic roles & 50–950 ramp

primary
#AB3197
secondary
#75C282
accent
#DF6249
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB3197

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

Preview Lab → · Contrast checker → · Palette generator →

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