#AB397F#AB397F

#AB397F is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.0% C 0.166 H 346.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AB397F
RGBrgb(171, 57, 127)
HSLhsl(323, 50%, 45%)
HSVhsv(323, 67%, 67%)
CMYKcmyk(0%, 66.7%, 25.7%, 32.9%)
CIE-LABlab(42.94, 53.35, -14.74)
CIE-LCHlch(42.94, 55.35, 344.56°)
OKLaboklab(53% 0.1613 -0.039)
OKLCHoklch(53% 0.166 346.4)
XYZxyz(22.0894, 13.1187, 21.4434)
Luminance0.1312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB397F #39AB65
analogous
#9E39AB #AB397F #AB3946
triadic
#AB397F #7FAB39 #397FAB
tetradic
#AB397F #AB9E39 #39AB65 #3946AB
square
#AB397F #AB9E39 #39AB65 #3946AB
split-complementary
#AB397F #46AB39 #39AB9E
monochromatic
#4F1A3B #7D2A5D #AB397F #C8599D #D787B8

Accessibility & contrast

On white

5.80
#AB397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB397F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB397F
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB397F#FFFFFF#000000##FFFFFF
##AB397F1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465981
Deuteranopia (green-blind)
#676D7C
Tritanopia (blue-blind)
#B63657
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab397f;
/* rgb */ color: rgb(171, 57, 127);
/* oklch */ color: oklch(53.0% 0.166 346.4);
Tailwind
colors: {
  custom: {
    50: '#c877a4',
    500: '#ab397f',
    950: '#000000',
  },
}
SCSS
$custom: #ab397f;
$custom-light: #c877a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab397f",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 323.158,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52998,
    "c": 0.16598,
    "h": 346.4
  },
  "luminance": 0.13116
}

Semantic roles & 50–950 ramp

primary
#AB397F
secondary
#7FC198
accent
#DA844E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB397F

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

Preview Lab → · Contrast checker → · Palette generator →

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