#AB397E#AB397E

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

Color values

HEX#AB397E
RGBrgb(171, 57, 126)
HSLhsl(324, 50%, 45%)
HSVhsv(324, 67%, 67%)
CMYKcmyk(0%, 66.7%, 26.3%, 32.9%)
CIE-LABlab(42.90, 53.22, -14.18)
CIE-LCHlch(42.90, 55.08, 345.08°)
OKLaboklab(52.96% 0.1611 -0.0374)
OKLCHoklch(52.96% 0.165 346.9)
XYZxyz(22.0245, 13.0928, 21.1019)
Luminance0.1309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB397E #39AB66
analogous
#9F39AB #AB397E #AB3945
triadic
#AB397E #7EAB39 #397EAB
tetradic
#AB397E #AB9F39 #39AB66 #3945AB
square
#AB397E #AB9F39 #39AB66 #3945AB
split-complementary
#AB397E #45AB39 #39AB9F
monochromatic
#4F1A3A #7D2A5C #AB397E #C8599C #D787B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB397E#FFFFFF#000000##FFFFFF
##AB397E1.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)
#475980
Deuteranopia (green-blind)
#686D7B
Tritanopia (blue-blind)
#B73656
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab397e;
/* rgb */ color: rgb(171, 57, 126);
/* oklch */ color: oklch(53.0% 0.165 346.9);
Tailwind
colors: {
  custom: {
    50: '#c877a3',
    500: '#ab397e',
    950: '#000000',
  },
}
SCSS
$custom: #ab397e;
$custom-light: #c877a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab397e",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 323.684,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52957,
    "c": 0.16539,
    "h": 346.9
  },
  "luminance": 0.13091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB397E

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

Preview Lab → · Contrast checker → · Palette generator →

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