#AB4786#AB4786

#AB4786 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.0% C 0.150 H 344.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AB4786
RGBrgb(171, 71, 134)
HSLhsl(322, 41%, 47%)
HSVhsv(322, 58%, 67%)
CMYKcmyk(0%, 58.5%, 21.6%, 32.9%)
CIE-LABlab(45.48, 48.16, -15.14)
CIE-LCHlch(45.48, 50.48, 342.55°)
OKLaboklab(54.96% 0.1442 -0.0402)
OKLCHoklch(54.96% 0.15 344.4)
XYZxyz(23.3516, 14.8877, 24.1934)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4786 #47AB6C
analogous
#9E47AB #AB4786 #AB4754
triadic
#AB4786 #86AB47 #4786AB
tetradic
#AB4786 #AB9E47 #47AB6C #4754AB
square
#AB4786 #AB9E47 #47AB6C #4754AB
split-complementary
#AB4786 #54AB47 #47AB9E
monochromatic
#552342 #803564 #AB4786 #C26DA3 #D498BE

Accessibility & contrast

On white

5.28
#AB4786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AB4786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4786
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4786#FFFFFF#000000##FFFFFF
##AB47861.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506188
Deuteranopia (green-blind)
#6C7284
Tritanopia (blue-blind)
#B54660
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab4786;
/* rgb */ color: rgb(171, 71, 134);
/* oklch */ color: oklch(55.0% 0.150 344.4);
Tailwind
colors: {
  custom: {
    50: '#c77fa9',
    500: '#ab4786',
    950: '#000000',
  },
}
SCSS
$custom: #ab4786;
$custom-light: #c77fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4786",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 322.2,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54959,
    "c": 0.14973,
    "h": 344.4
  },
  "luminance": 0.14886
}

Semantic roles & 50–950 ramp

primary
#AB4786
secondary
#8DC0A0
accent
#D18457
background
#FCF8FA
surface
#F8EFF4
border
#D1CACE
text
#130A0F
muted
#827C7F

Preview Lab

Preview with #AB4786

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

Preview Lab → · Contrast checker → · Palette generator →

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