#AB4097#AB4097

#AB4097 is a mid, vivid pink. Relative luminance 0.146; OKLCH L 54.9% C 0.172 H 335.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AB4097
RGBrgb(171, 64, 151)
HSLhsl(311, 46%, 46%)
HSVhsv(311, 63%, 67%)
CMYKcmyk(0%, 62.6%, 11.7%, 32.9%)
CIE-LABlab(45.03, 53.92, -26.08)
CIE-LCHlch(45.03, 59.90, 334.19°)
OKLaboklab(54.86% 0.1572 -0.0709)
OKLCHoklch(54.86% 0.172 335.7)
XYZxyz(24.2141, 14.5610, 30.8074)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4097 #40AB54
analogous
#8940AB #AB4097 #AB4061
triadic
#AB4097 #97AB40 #4097AB
tetradic
#AB4097 #AB8940 #40AB54 #4061AB
square
#AB4097 #AB8940 #40AB54 #4061AB
split-complementary
#AB4097 #61AB40 #40AB89
monochromatic
#521F48 #7E2F70 #AB4097 #C563B3 #D590C8

Accessibility & contrast

On white

5.37
#AB4097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AB4097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4097
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4097#FFFFFF#000000##FFFFFF
##AB40971.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41609A
Deuteranopia (green-blind)
#627094
Tritanopia (blue-blind)
#B34665
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab4097;
/* rgb */ color: rgb(171, 64, 151);
/* oklch */ color: oklch(54.9% 0.172 335.7);
Tailwind
colors: {
  custom: {
    50: '#c77cb6',
    500: '#ab4097',
    950: '#000000',
  },
}
SCSS
$custom: #ab4097;
$custom-light: #c77cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4097",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 311.215,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54858,
    "c": 0.17247,
    "h": 335.7
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#AB4097
secondary
#86C191
accent
#D56B53
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A11
muted
#827C80

Preview Lab

Preview with #AB4097

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

Preview Lab → · Contrast checker → · Palette generator →

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