#AB397D#AB397D

#AB397D is a mid, vivid pink. Relative luminance 0.131; OKLCH L 52.9% C 0.165 H 347.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AB397D
RGBrgb(171, 57, 125)
HSLhsl(324, 50%, 45%)
HSVhsv(324, 67%, 67%)
CMYKcmyk(0%, 66.7%, 26.9%, 32.9%)
CIE-LABlab(42.86, 53.09, -13.63)
CIE-LCHlch(42.86, 54.81, 345.60°)
OKLaboklab(52.92% 0.1609 -0.0359)
OKLCHoklch(52.92% 0.165 347.4)
XYZxyz(21.9603, 13.0671, 20.7637)
Luminance0.1306 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB397D #39AB67
analogous
#A039AB #AB397D #AB3944
triadic
#AB397D #7DAB39 #397DAB
tetradic
#AB397D #ABA039 #39AB67 #3944AB
square
#AB397D #ABA039 #39AB67 #3944AB
split-complementary
#AB397D #44AB39 #39ABA0
monochromatic
#4F1A3A #7D2A5B #AB397D #C8599B #D787B7

Accessibility & contrast

On white

5.81
#AB397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB397D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB397D
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB397D#FFFFFF#000000##FFFFFF
##AB397D1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47597F
Deuteranopia (green-blind)
#686C7A
Tritanopia (blue-blind)
#B73656
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab397d;
/* rgb */ color: rgb(171, 57, 125);
/* oklch */ color: oklch(52.9% 0.165 347.4);
Tailwind
colors: {
  custom: {
    50: '#c877a2',
    500: '#ab397d',
    950: '#000000',
  },
}
SCSS
$custom: #ab397d;
$custom-light: #c877a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab397d",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 324.211,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52916,
    "c": 0.16481,
    "h": 347.4
  },
  "luminance": 0.13065
}

Semantic roles & 50–950 ramp

primary
#AB397D
secondary
#7FC199
accent
#DA864E
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB397D

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

Preview Lab → · Contrast checker → · Palette generator →

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