#AB278C#AB278C

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

Color values

HEX#AB278C
RGBrgb(171, 39, 140)
HSLhsl(314, 63%, 41%)
HSVhsv(314, 77%, 67%)
CMYKcmyk(0%, 77.2%, 18.1%, 32.9%)
CIE-LABlab(41.22, 61.52, -25.34)
CIE-LCHlch(41.22, 66.54, 337.61°)
OKLaboklab(51.93% 0.1833 -0.0686)
OKLCHoklch(51.93% 0.196 339.5)
XYZxyz(22.2543, 12.0046, 25.9510)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278C #27AB46
analogous
#8827AB #AB278C #AB274A
triadic
#AB278C #8CAB27 #278CAB
tetradic
#AB278C #AB8827 #27AB46 #274AAB
square
#AB278C #AB8827 #27AB46 #274AAB
split-complementary
#AB278C #4AAB27 #27AB88
monochromatic
#47103A #791C63 #AB278C #D33DAF #DE6EC4

Accessibility & contrast

On white

6.18
#AB278C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AB278C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB278C
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278C#FFFFFF#000000##FFFFFF
##AB278C1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#5C6989
Tritanopia (blue-blind)
#B52C57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab278c;
/* rgb */ color: rgb(171, 39, 140);
/* oklch */ color: oklch(51.9% 0.196 339.5);
Tailwind
colors: {
  custom: {
    50: '#c870ae',
    500: '#ab278c',
    950: '#000000',
  },
}
SCSS
$custom: #ab278c;
$custom-light: #c870ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278c",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 314.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.1957,
    "h": 339.5
  },
  "luminance": 0.12002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB278C

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

Preview Lab → · Contrast checker → · Palette generator →

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