#AB2877#AB2877

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

Color values

HEX#AB2877
RGBrgb(171, 40, 119)
HSLhsl(324, 62%, 41%)
HSVhsv(324, 77%, 67%)
CMYKcmyk(0%, 76.6%, 30.4%, 32.9%)
CIE-LABlab(40.43, 58.50, -13.63)
CIE-LCHlch(40.43, 60.06, 346.89°)
OKLaboklab(51.06% 0.1786 -0.0358)
OKLCHoklch(51.06% 0.182 348.7)
XYZxyz(20.8842, 11.5098, 18.5710)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2877 #28AB5C
analogous
#9E28AB #AB2877 #AB2836
triadic
#AB2877 #77AB28 #2877AB
tetradic
#AB2877 #AB9E28 #28AB5C #2836AB
square
#AB2877 #AB9E28 #28AB5C #2836AB
split-complementary
#AB2877 #36AB28 #28AB9E
monochromatic
#481132 #791C54 #AB2877 #D23E97 #DE70B2

Accessibility & contrast

On white

6.36
#AB2877 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AB2877 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2877
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2877#FFFFFF#000000##FFFFFF
##AB28771.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5179
Deuteranopia (green-blind)
#636874
Tritanopia (blue-blind)
#B8214C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2877;
/* rgb */ color: rgb(171, 40, 119);
/* oklch */ color: oklch(51.1% 0.182 348.7);
Tailwind
colors: {
  custom: {
    50: '#c86f9e',
    500: '#ab2877',
    950: '#000000',
  },
}
SCSS
$custom: #ab2877;
$custom-light: #c86f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2877",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 323.817,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51056,
    "c": 0.18213,
    "h": 348.7
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#AB2877
secondary
#6AC48E
accent
#E58343
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2877

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

Preview Lab → · Contrast checker → · Palette generator →

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