#AB397B#AB397B

#AB397B is a mid, vivid pink. Relative luminance 0.130; OKLCH L 52.8% C 0.164 H 348.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB397B
RGBrgb(171, 57, 123)
HSLhsl(325, 50%, 45%)
HSVhsv(325, 67%, 67%)
CMYKcmyk(0%, 66.7%, 28.1%, 32.9%)
CIE-LABlab(42.79, 52.82, -12.52)
CIE-LCHlch(42.79, 54.29, 346.67°)
OKLaboklab(52.84% 0.1603 -0.0328)
OKLCHoklch(52.84% 0.164 348.4)
XYZxyz(21.8338, 13.0165, 20.0976)
Luminance0.1301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB397B #39AB69
analogous
#A239AB #AB397B #AB3942
triadic
#AB397B #7BAB39 #397BAB
tetradic
#AB397B #ABA239 #39AB69 #3942AB
square
#AB397B #ABA239 #39AB69 #3942AB
split-complementary
#AB397B #42AB39 #39ABA2
monochromatic
#4F1A39 #7D2A5A #AB397B #C85999 #D787B6

Accessibility & contrast

On white

5.83
#AB397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB397B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB397B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB397B#FFFFFF#000000##FFFFFF
##AB397B1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48587D
Deuteranopia (green-blind)
#686C78
Tritanopia (blue-blind)
#B73555
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab397b;
/* rgb */ color: rgb(171, 57, 123);
/* oklch */ color: oklch(52.8% 0.164 348.4);
Tailwind
colors: {
  custom: {
    50: '#c877a1',
    500: '#ab397b',
    950: '#000000',
  },
}
SCSS
$custom: #ab397b;
$custom-light: #c877a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab397b",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 325.263,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52835,
    "c": 0.16367,
    "h": 348.4
  },
  "luminance": 0.13014
}

Semantic roles & 50–950 ramp

primary
#AB397B
secondary
#7FC19B
accent
#DA894E
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB397B

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

Preview Lab → · Contrast checker → · Palette generator →

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