#AB4797#AB4797

#AB4797 is a mid, vivid pink. Relative luminance 0.154; OKLCH L 55.7% C 0.162 H 336.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB4797
RGBrgb(171, 71, 151)
HSLhsl(312, 41%, 47%)
HSVhsv(312, 58%, 67%)
CMYKcmyk(0%, 58.5%, 11.7%, 32.9%)
CIE-LABlab(46.18, 50.78, -24.29)
CIE-LCHlch(46.18, 56.29, 334.43°)
OKLaboklab(55.7% 0.148 -0.0659)
OKLCHoklch(55.7% 0.162 336)
XYZxyz(24.6340, 15.4007, 30.9473)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4797 #47AB5B
analogous
#8D47AB #AB4797 #AB4765
triadic
#AB4797 #97AB47 #4797AB
tetradic
#AB4797 #AB8D47 #47AB5B #4765AB
square
#AB4797 #AB8D47 #47AB5B #4765AB
split-complementary
#AB4797 #65AB47 #47AB8D
monochromatic
#55234B #803571 #AB4797 #C26DB1 #D498C8

Accessibility & contrast

On white

5.15
#AB4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4797
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4797#FFFFFF#000000##FFFFFF
##AB47971.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48649A
Deuteranopia (green-blind)
#667394
Tritanopia (blue-blind)
#B34C68
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab4797;
/* rgb */ color: rgb(171, 71, 151);
/* oklch */ color: oklch(55.7% 0.162 336.0);
Tailwind
colors: {
  custom: {
    50: '#c780b6',
    500: '#ab4797',
    950: '#000000',
  },
}
SCSS
$custom: #ab4797;
$custom-light: #c780b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4797",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 312,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55703,
    "c": 0.16198,
    "h": 336
  },
  "luminance": 0.15399
}

Semantic roles & 50–950 ramp

primary
#AB4797
secondary
#8DC098
accent
#D16F57
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130A11
muted
#827C80

Preview Lab

Preview with #AB4797

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

Preview Lab → · Contrast checker → · Palette generator →

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