#AB278B#AB278B

#AB278B is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.195 H 339.9°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB278B
RGBrgb(171, 39, 139)
HSLhsl(315, 63%, 41%)
HSVhsv(315, 77%, 67%)
CMYKcmyk(0%, 77.2%, 18.7%, 32.9%)
CIE-LABlab(41.18, 61.38, -24.80)
CIE-LCHlch(41.18, 66.20, 338.00°)
OKLaboklab(51.88% 0.1832 -0.067)
OKLCHoklch(51.88% 0.195 339.9)
XYZxyz(22.1809, 11.9753, 25.5644)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278B #27AB47
analogous
#8927AB #AB278B #AB2749
triadic
#AB278B #8BAB27 #278BAB
tetradic
#AB278B #AB8927 #27AB47 #2749AB
square
#AB278B #AB8927 #27AB47 #2749AB
split-complementary
#AB278B #49AB27 #27AB89
monochromatic
#47103A #791C62 #AB278B #D33DAE #DE6EC3

Accessibility & contrast

On white

6.19
#AB278B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB278B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB278B
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278B#FFFFFF#000000##FFFFFF
##AB278B1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548E
Deuteranopia (green-blind)
#5C6988
Tritanopia (blue-blind)
#B52C57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab278b;
/* rgb */ color: rgb(171, 39, 139);
/* oklch */ color: oklch(51.9% 0.195 339.9);
Tailwind
colors: {
  custom: {
    50: '#c870ad',
    500: '#ab278b',
    950: '#000000',
  },
}
SCSS
$custom: #ab278b;
$custom-light: #c870ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278b",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 314.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.19505,
    "h": 339.9
  },
  "luminance": 0.11973
}

Semantic roles & 50–950 ramp

primary
#AB278B
secondary
#69C57F
accent
#E66A42
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB278B

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

Preview Lab → · Contrast checker → · Palette generator →

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