#AB3387#AB3387

#AB3387 is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.7% C 0.179 H 342.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AB3387
RGBrgb(171, 51, 135)
HSLhsl(318, 54%, 44%)
HSVhsv(318, 70%, 67%)
CMYKcmyk(0%, 70.2%, 21.1%, 32.9%)
CIE-LABlab(42.43, 56.79, -20.42)
CIE-LCHlch(42.43, 60.35, 340.22°)
OKLaboklab(52.73% 0.1703 -0.0548)
OKLCHoklch(52.73% 0.179 342.2)
XYZxyz(22.3523, 12.7771, 24.2060)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3387 #33AB57
analogous
#9333AB #AB3387 #AB334B
triadic
#AB3387 #87AB33 #3387AB
tetradic
#AB3387 #AB9333 #33AB57 #334BAB
square
#AB3387 #AB9333 #33AB57 #334BAB
split-complementary
#AB3387 #4BAB33 #33AB93
monochromatic
#4D173D #7C2562 #AB3387 #CB50A6 #D97FBE

Accessibility & contrast

On white

5.91
#AB3387 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB3387 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3387
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3387#FFFFFF#000000##FFFFFF
##AB33871.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5889
Deuteranopia (green-blind)
#626B84
Tritanopia (blue-blind)
#B63458
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab3387;
/* rgb */ color: rgb(171, 51, 135);
/* oklch */ color: oklch(52.7% 0.179 342.2);
Tailwind
colors: {
  custom: {
    50: '#c875aa',
    500: '#ab3387',
    950: '#000000',
  },
}
SCSS
$custom: #ab3387;
$custom-light: #c875aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3387",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 318,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52728,
    "c": 0.17884,
    "h": 342.2
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#AB3387
secondary
#78C28E
accent
#DD764A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB3387

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

Preview Lab → · Contrast checker → · Palette generator →

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