#AB397C#AB397C

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

Color values

HEX#AB397C
RGBrgb(171, 57, 124)
HSLhsl(325, 50%, 45%)
HSVhsv(325, 67%, 67%)
CMYKcmyk(0%, 66.7%, 27.5%, 32.9%)
CIE-LABlab(42.83, 52.95, -13.07)
CIE-LCHlch(42.83, 54.54, 346.13°)
OKLaboklab(52.88% 0.1606 -0.0344)
OKLCHoklch(52.88% 0.164 347.9)
XYZxyz(21.8967, 13.0417, 20.4290)
Luminance0.1304 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB397C #39AB68
analogous
#A139AB #AB397C #AB3943
triadic
#AB397C #7CAB39 #397CAB
tetradic
#AB397C #ABA139 #39AB68 #3943AB
square
#AB397C #ABA139 #39AB68 #3943AB
split-complementary
#AB397C #43AB39 #39ABA1
monochromatic
#4F1A39 #7D2A5B #AB397C #C8599A #D787B6

Accessibility & contrast

On white

5.82
#AB397C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB397C
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB397C#FFFFFF#000000##FFFFFF
##AB397C1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47597E
Deuteranopia (green-blind)
#686C79
Tritanopia (blue-blind)
#B73555
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab397c;
/* rgb */ color: rgb(171, 57, 124);
/* oklch */ color: oklch(52.9% 0.164 347.9);
Tailwind
colors: {
  custom: {
    50: '#c877a2',
    500: '#ab397c',
    950: '#000000',
  },
}
SCSS
$custom: #ab397c;
$custom-light: #c877a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab397c",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 324.737,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52875,
    "c": 0.16423,
    "h": 347.9
  },
  "luminance": 0.13039
}

Semantic roles & 50–950 ramp

primary
#AB397C
secondary
#7FC19A
accent
#DA884E
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB397C

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

Preview Lab → · Contrast checker → · Palette generator →

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