#AB478F#AB478F

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

Color values

HEX#AB478F
RGBrgb(171, 71, 143)
HSLhsl(317, 41%, 47%)
HSVhsv(317, 58%, 67%)
CMYKcmyk(0%, 58.5%, 16.4%, 32.9%)
CIE-LABlab(45.84, 49.51, -20.02)
CIE-LCHlch(45.84, 53.41, 337.98°)
OKLaboklab(55.34% 0.1464 -0.0538)
OKLCHoklch(55.34% 0.156 339.8)
XYZxyz(24.0062, 15.1496, 27.6411)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB478F #47AB63
analogous
#9547AB #AB478F #AB475D
triadic
#AB478F #8FAB47 #478FAB
tetradic
#AB478F #AB9547 #47AB63 #475DAB
square
#AB478F #AB9547 #47AB63 #475DAB
split-complementary
#AB478F #5DAB47 #47AB95
monochromatic
#552347 #80356B #AB478F #C26DAA #D498C3

Accessibility & contrast

On white

5.21
#AB478F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AB478F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB478F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB478F#FFFFFF#000000##FFFFFF
##AB478F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6291
Deuteranopia (green-blind)
#69728C
Tritanopia (blue-blind)
#B44965
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab478f;
/* rgb */ color: rgb(171, 71, 143);
/* oklch */ color: oklch(55.3% 0.156 339.8);
Tailwind
colors: {
  custom: {
    50: '#c77fb0',
    500: '#ab478f',
    950: '#000000',
  },
}
SCSS
$custom: #ab478f;
$custom-light: #c77fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab478f",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 316.8,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55341,
    "c": 0.15595,
    "h": 339.8
  },
  "luminance": 0.15148
}

Semantic roles & 50–950 ramp

primary
#AB478F
secondary
#8DC09C
accent
#D17957
background
#FCF8FA
surface
#F8EFF4
border
#D1CACE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #AB478F

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

Preview Lab → · Contrast checker → · Palette generator →

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