#AB278D#AB278D

#AB278D is a mid, vivid pink. Relative luminance 0.120; OKLCH L 52.0% C 0.196 H 339.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB278D
RGBrgb(171, 39, 141)
HSLhsl(314, 63%, 41%)
HSVhsv(314, 77%, 67%)
CMYKcmyk(0%, 77.2%, 17.5%, 32.9%)
CIE-LABlab(41.27, 61.66, -25.88)
CIE-LCHlch(41.27, 66.87, 337.23°)
OKLaboklab(51.98% 0.1834 -0.0701)
OKLCHoklch(51.98% 0.196 339.1)
XYZxyz(22.3284, 12.0343, 26.3411)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278D #27AB45
analogous
#8727AB #AB278D #AB274B
triadic
#AB278D #8DAB27 #278DAB
tetradic
#AB278D #AB8727 #27AB45 #274BAB
square
#AB278D #AB8727 #27AB45 #274BAB
split-complementary
#AB278D #4BAB27 #27AB87
monochromatic
#47103B #791C64 #AB278D #D33DB1 #DE6EC5

Accessibility & contrast

On white

6.16
#AB278D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB278D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB278D
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278D#FFFFFF#000000##FFFFFF
##AB278D1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#5C698A
Tritanopia (blue-blind)
#B52D58
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab278d;
/* rgb */ color: rgb(171, 39, 141);
/* oklch */ color: oklch(52.0% 0.196 339.1);
Tailwind
colors: {
  custom: {
    50: '#c870ae',
    500: '#ab278d',
    950: '#000000',
  },
}
SCSS
$custom: #ab278d;
$custom-light: #c870ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278d",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 313.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.19636,
    "h": 339.1
  },
  "luminance": 0.12032
}

Semantic roles & 50–950 ramp

primary
#AB278D
secondary
#69C57E
accent
#E66742
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB278D

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

Preview Lab → · Contrast checker → · Palette generator →

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