#AB278F#AB278F

#AB278F is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.1% C 0.198 H 338.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AB278F
RGBrgb(171, 39, 143)
HSLhsl(313, 63%, 41%)
HSVhsv(313, 77%, 67%)
CMYKcmyk(0%, 77.2%, 16.4%, 32.9%)
CIE-LABlab(41.37, 61.94, -26.95)
CIE-LCHlch(41.37, 67.55, 336.49°)
OKLaboklab(52.08% 0.1837 -0.0731)
OKLCHoklch(52.08% 0.198 338.3)
XYZxyz(22.4786, 12.0943, 27.1319)
Luminance0.1209 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278F #27AB43
analogous
#8527AB #AB278F #AB274D
triadic
#AB278F #8FAB27 #278FAB
tetradic
#AB278F #AB8527 #27AB43 #274DAB
square
#AB278F #AB8527 #27AB43 #274DAB
split-complementary
#AB278F #4DAB27 #27AB85
monochromatic
#47103C #791C65 #AB278F #D33DB3 #DE6EC6

Accessibility & contrast

On white

6.14
#AB278F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB278F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB278F
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278F#FFFFFF#000000##FFFFFF
##AB278F1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5592
Deuteranopia (green-blind)
#5B698C
Tritanopia (blue-blind)
#B52E59
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab278f;
/* rgb */ color: rgb(171, 39, 143);
/* oklch */ color: oklch(52.1% 0.198 338.3);
Tailwind
colors: {
  custom: {
    50: '#c870b0',
    500: '#ab278f',
    950: '#000000',
  },
}
SCSS
$custom: #ab278f;
$custom-light: #c870b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278f",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 312.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52078,
    "c": 0.19768,
    "h": 338.3
  },
  "luminance": 0.12092
}

Semantic roles & 50–950 ramp

primary
#AB278F
secondary
#69C57D
accent
#E66542
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB278F

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

Preview Lab → · Contrast checker → · Palette generator →

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