#AB4897#AB4897

#AB4897 is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.8% C 0.160 H 336.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB4897
RGBrgb(171, 72, 151)
HSLhsl(312, 41%, 48%)
HSVhsv(312, 58%, 67%)
CMYKcmyk(0%, 57.9%, 11.7%, 32.9%)
CIE-LABlab(46.35, 50.31, -24.03)
CIE-LCHlch(46.35, 55.76, 334.47°)
OKLaboklab(55.83% 0.1466 -0.0651)
OKLCHoklch(55.83% 0.16 336.1)
XYZxyz(24.6981, 15.5289, 30.9687)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4897 #48AB5C
analogous
#8D48AB #AB4897 #AB4866
triadic
#AB4897 #97AB48 #4897AB
tetradic
#AB4897 #AB8D48 #48AB5C #4866AB
square
#AB4897 #AB8D48 #48AB5C #4866AB
split-complementary
#AB4897 #66AB48 #48AB8D
monochromatic
#55244B #803671 #AB4897 #C26EB1 #D499C8

Accessibility & contrast

On white

5.12
#AB4897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AB4897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4897
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4897#FFFFFF#000000##FFFFFF
##AB48971.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49649A
Deuteranopia (green-blind)
#677394
Tritanopia (blue-blind)
#B34D69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab4897;
/* rgb */ color: rgb(171, 72, 151);
/* oklch */ color: oklch(55.8% 0.160 336.1);
Tailwind
colors: {
  custom: {
    50: '#c780b6',
    500: '#ab4897',
    950: '#000000',
  },
}
SCSS
$custom: #ab4897;
$custom-light: #c780b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4897",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 312.121,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55829,
    "c": 0.16043,
    "h": 336.1
  },
  "luminance": 0.15527
}

Semantic roles & 50–950 ramp

primary
#AB4897
secondary
#8EC099
accent
#D17057
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB4897

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

Preview Lab → · Contrast checker → · Palette generator →

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