#AB4A7B#AB4A7B

#AB4A7B is a mid, vivid pink. Relative luminance 0.150; OKLCH L 54.9% C 0.138 H 351.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB4A7B
RGBrgb(171, 74, 123)
HSLhsl(330, 40%, 48%)
HSVhsv(330, 57%, 67%)
CMYKcmyk(0%, 56.7%, 28.1%, 32.9%)
CIE-LABlab(45.62, 45.17, -8.25)
CIE-LCHlch(45.62, 45.92, 349.64°)
OKLaboklab(54.93% 0.1368 -0.0214)
OKLCHoklch(54.93% 0.138 351.1)
XYZxyz(22.8194, 14.9877, 20.4262)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4A7B #4AAB7A
analogous
#AA4AAB #AB4A7B #AB4A4A
triadic
#AB4A7B #7BAB4A #4A7BAB
tetradic
#AB4A7B #ABAA4A #4AAB7A #4A4AAB
square
#AB4A7B #ABAA4A #4AAB7A #4A4AAB
split-complementary
#AB4A7B #4AAB4A #4AABAA
monochromatic
#56253E #80385C #AB4A7B #C1719A #D49BB8

Accessibility & contrast

On white

5.25
#AB4A7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AB4A7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4A7B
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4A7B#FFFFFF#000000##FFFFFF
##AB4A7B1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56617D
Deuteranopia (green-blind)
#707279
Tritanopia (blue-blind)
#B6465D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab4a7b;
/* rgb */ color: rgb(171, 74, 123);
/* oklch */ color: oklch(54.9% 0.138 351.1);
Tailwind
colors: {
  custom: {
    50: '#c781a1',
    500: '#ab4a7b',
    950: '#000000',
  },
}
SCSS
$custom: #ab4a7b;
$custom-light: #c781a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4a7b",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 123
  },
  "hsl": {
    "h": 329.691,
    "s": 39.592,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.13841,
    "h": 351.1
  },
  "luminance": 0.14986
}

Semantic roles & 50–950 ramp

primary
#AB4A7B
secondary
#90C0A8
accent
#CF9358
background
#FCF8F9
surface
#F8EFF2
border
#D1CACC
text
#130B0E
muted
#827C7E

Preview Lab

Preview with #AB4A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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