#AB2878#AB2878

#AB2878 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.183 H 348.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AB2878
RGBrgb(171, 40, 120)
HSLhsl(323, 62%, 41%)
HSVhsv(323, 77%, 67%)
CMYKcmyk(0%, 76.6%, 29.8%, 32.9%)
CIE-LABlab(40.47, 58.62, -14.19)
CIE-LCHlch(40.47, 60.31, 346.39°)
OKLaboklab(51.1% 0.1788 -0.0373)
OKLCHoklch(51.1% 0.183 348.2)
XYZxyz(20.9446, 11.5340, 18.8890)
Luminance0.1153 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2878 #28AB5B
analogous
#9D28AB #AB2878 #AB2837
triadic
#AB2878 #78AB28 #2878AB
tetradic
#AB2878 #AB9D28 #28AB5B #2837AB
square
#AB2878 #AB9D28 #28AB5B #2837AB
split-complementary
#AB2878 #37AB28 #28AB9D
monochromatic
#481132 #791C55 #AB2878 #D23E98 #DE70B3

Accessibility & contrast

On white

6.35
#AB2878 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AB2878 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2878
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2878#FFFFFF#000000##FFFFFF
##AB28781.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517A
Deuteranopia (green-blind)
#636875
Tritanopia (blue-blind)
#B7214D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2878;
/* rgb */ color: rgb(171, 40, 120);
/* oklch */ color: oklch(51.1% 0.183 348.2);
Tailwind
colors: {
  custom: {
    50: '#c86f9f',
    500: '#ab2878',
    950: '#000000',
  },
}
SCSS
$custom: #ab2878;
$custom-light: #c86f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2878",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 323.359,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51098,
    "c": 0.18266,
    "h": 348.2
  },
  "luminance": 0.11532
}

Semantic roles & 50–950 ramp

primary
#AB2878
secondary
#6AC48D
accent
#E58243
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2878

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

Preview Lab → · Contrast checker → · Palette generator →

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