#AB5197#AB5197

#AB5197 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.0% C 0.146 H 336.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB5197
RGBrgb(171, 81, 151)
HSLhsl(313, 36%, 49%)
HSVhsv(313, 53%, 67%)
CMYKcmyk(0%, 52.6%, 11.7%, 32.9%)
CIE-LABlab(47.98, 45.96, -21.51)
CIE-LCHlch(47.98, 50.74, 334.92°)
OKLaboklab(57.03% 0.1338 -0.0581)
OKLCHoklch(57.03% 0.146 336.5)
XYZxyz(25.3231, 16.7790, 31.1771)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5197 #51AB65
analogous
#9251AB #AB5197 #AB516A
triadic
#AB5197 #97AB51 #5197AB
tetradic
#AB5197 #AB9251 #51AB65 #516AAB
square
#AB5197 #AB9251 #51AB65 #516AAB
split-complementary
#AB5197 #6AAB51 #51AB92
monochromatic
#582A4E #813D72 #AB5197 #C079B0 #D3A3C9

Accessibility & contrast

On white

4.82
#AB5197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AB5197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5197
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5197#FFFFFF#000000##FFFFFF
##AB51971.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526999
Deuteranopia (green-blind)
#6C7795
Tritanopia (blue-blind)
#B3556D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab5197;
/* rgb */ color: rgb(171, 81, 151);
/* oklch */ color: oklch(57.0% 0.146 336.5);
Tailwind
colors: {
  custom: {
    50: '#c686b5',
    500: '#ab5197',
    950: '#000000',
  },
}
SCSS
$custom: #ab5197;
$custom-light: #c686b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5197",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 313.333,
    "s": 35.714,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57034,
    "c": 0.14589,
    "h": 336.5
  },
  "luminance": 0.16777
}

Semantic roles & 50–950 ramp

primary
#AB5197
secondary
#97C1A0
accent
#CC755C
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB5197

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

Preview Lab → · Contrast checker → · Palette generator →

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