#AB5478#AB5478

#AB5478 is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.3% C 0.121 H 355.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB5478
RGBrgb(171, 84, 120)
HSLhsl(335, 34%, 50%)
HSVhsv(335, 51%, 67%)
CMYKcmyk(0%, 50.9%, 29.8%, 32.9%)
CIE-LABlab(47.44, 39.73, -3.73)
CIE-LCHlch(47.44, 39.91, 354.64°)
OKLaboklab(56.26% 0.1204 -0.0093)
OKLCHoklch(56.26% 0.121 355.6)
XYZxyz(23.3560, 16.3567, 19.6927)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5478 #54AB87
analogous
#AB54A4 #AB5478 #AB5B54
triadic
#AB5478 #78AB54 #5478AB
tetradic
#AB5478 #A4AB54 #54AB87 #5B54AB
square
#AB5478 #A4AB54 #54AB87 #5B54AB
split-complementary
#AB5478 #54AB5B #54A4AB
monochromatic
#592C3E #82405B #AB5478 #BF7D98 #D3A6B9

Accessibility & contrast

On white

4.92
#AB5478 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AB5478 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5478
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5478#FFFFFF#000000##FFFFFF
##AB54781.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606779
Deuteranopia (green-blind)
#777676
Tritanopia (blue-blind)
#B74F61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab5478;
/* rgb */ color: rgb(171, 84, 120);
/* oklch */ color: oklch(56.3% 0.121 355.6);
Tailwind
colors: {
  custom: {
    50: '#c7879e',
    500: '#ab5478',
    950: '#000000',
  },
}
SCSS
$custom: #ab5478;
$custom-light: #c7879e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5478",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 120
  },
  "hsl": {
    "h": 335.172,
    "s": 34.118,
    "l": 50
  },
  "oklch": {
    "l": 0.5626,
    "c": 0.12073,
    "h": 355.6
  },
  "luminance": 0.16355
}

Semantic roles & 50–950 ramp

primary
#AB5478
secondary
#9AC1B1
accent
#CA9D5E
background
#FCF8F9
surface
#F8F0F2
border
#D1CBCC
text
#130B0E
muted
#827C7E

Preview Lab

Preview with #AB5478

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

Preview Lab → · Contrast checker → · Palette generator →

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