#AB278A#AB278A

#AB278A is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.194 H 340.3°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AB278A
RGBrgb(171, 39, 138)
HSLhsl(315, 63%, 41%)
HSVhsv(315, 77%, 67%)
CMYKcmyk(0%, 77.2%, 19.3%, 32.9%)
CIE-LABlab(41.13, 61.25, -24.26)
CIE-LCHlch(41.13, 65.88, 338.39°)
OKLaboklab(51.83% 0.183 -0.0655)
OKLCHoklch(51.83% 0.194 340.3)
XYZxyz(22.1082, 11.9462, 25.1814)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278A #27AB48
analogous
#8A27AB #AB278A #AB2748
triadic
#AB278A #8AAB27 #278AAB
tetradic
#AB278A #AB8A27 #27AB48 #2748AB
square
#AB278A #AB8A27 #27AB48 #2748AB
split-complementary
#AB278A #48AB27 #27AB8A
monochromatic
#47103A #791C62 #AB278A #D33DAD #DE6EC2

Accessibility & contrast

On white

6.20
#AB278A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB278A
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278A#FFFFFF#000000##FFFFFF
##AB278A1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#5D6887
Tritanopia (blue-blind)
#B52B56
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab278a;
/* rgb */ color: rgb(171, 39, 138);
/* oklch */ color: oklch(51.8% 0.194 340.3);
Tailwind
colors: {
  custom: {
    50: '#c870ac',
    500: '#ab278a',
    950: '#000000',
  },
}
SCSS
$custom: #ab278a;
$custom-light: #c870ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278a",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 315,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51832,
    "c": 0.19441,
    "h": 340.3
  },
  "luminance": 0.11944
}

Semantic roles & 50–950 ramp

primary
#AB278A
secondary
#69C580
accent
#E66B42
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB278A

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

Preview Lab → · Contrast checker → · Palette generator →

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