#AB478D#AB478D

#AB478D is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.3% C 0.155 H 340.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB478D
RGBrgb(171, 71, 141)
HSLhsl(318, 41%, 47%)
HSVhsv(318, 58%, 67%)
CMYKcmyk(0%, 58.5%, 17.5%, 32.9%)
CIE-LABlab(45.76, 49.20, -18.94)
CIE-LCHlch(45.76, 52.72, 338.95°)
OKLaboklab(55.25% 0.1459 -0.0508)
OKLCHoklch(55.25% 0.155 340.8)
XYZxyz(23.8560, 15.0895, 26.8503)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB478D #47AB65
analogous
#9747AB #AB478D #AB475B
triadic
#AB478D #8DAB47 #478DAB
tetradic
#AB478D #AB9747 #47AB65 #475BAB
square
#AB478D #AB9747 #47AB65 #475BAB
split-complementary
#AB478D #5BAB47 #47AB97
monochromatic
#552346 #803569 #AB478D #C26DA9 #D498C2

Accessibility & contrast

On white

5.23
#AB478D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AB478D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB478D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB478D#FFFFFF#000000##FFFFFF
##AB478D1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D628F
Deuteranopia (green-blind)
#6A728A
Tritanopia (blue-blind)
#B44964
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab478d;
/* rgb */ color: rgb(171, 71, 141);
/* oklch */ color: oklch(55.3% 0.155 340.8);
Tailwind
colors: {
  custom: {
    50: '#c77fae',
    500: '#ab478d',
    950: '#000000',
  },
}
SCSS
$custom: #ab478d;
$custom-light: #c77fae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab478d",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 318,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.15451,
    "h": 340.8
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#AB478D
secondary
#8DC09D
accent
#D17B57
background
#FCF8FA
surface
#F8EFF4
border
#D1CACE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #AB478D

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

Preview Lab → · Contrast checker → · Palette generator →

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