#AB4F97#AB4F97

#AB4F97 is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.8% C 0.149 H 336.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AB4F97
RGBrgb(171, 79, 151)
HSLhsl(313, 37%, 49%)
HSVhsv(313, 54%, 67%)
CMYKcmyk(0%, 53.8%, 11.7%, 32.9%)
CIE-LABlab(47.61, 46.95, -22.09)
CIE-LCHlch(47.61, 51.89, 334.80°)
OKLaboklab(56.76% 0.1367 -0.0597)
OKLCHoklch(56.76% 0.149 336.4)
XYZxyz(25.1767, 16.4861, 31.1282)
Luminance0.1648 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4F97 #4FAB63
analogous
#914FAB #AB4F97 #AB4F69
triadic
#AB4F97 #97AB4F #4F97AB
tetradic
#AB4F97 #AB914F #4FAB63 #4F69AB
square
#AB4F97 #AB914F #4FAB63 #4F69AB
split-complementary
#AB4F97 #69AB4F #4FAB91
monochromatic
#57284D #813C72 #AB4F97 #C077B0 #D4A1C9

Accessibility & contrast

On white

4.89
#AB4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AB4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4F97
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4F97#FFFFFF#000000##FFFFFF
##AB4F971.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506899
Deuteranopia (green-blind)
#6B7695
Tritanopia (blue-blind)
#B3536C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4f97;
/* rgb */ color: rgb(171, 79, 151);
/* oklch */ color: oklch(56.8% 0.149 336.4);
Tailwind
colors: {
  custom: {
    50: '#c684b5',
    500: '#ab4f97',
    950: '#000000',
  },
}
SCSS
$custom: #ab4f97;
$custom-light: #c684b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4f97",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 313.043,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.1492,
    "h": 336.4
  },
  "luminance": 0.16484
}

Semantic roles & 50–950 ramp

primary
#AB4F97
secondary
#95C19F
accent
#CD745B
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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