#AB2873#AB2873

#AB2873 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.180 H 350.5°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AB2873
RGBrgb(171, 40, 115)
HSLhsl(326, 62%, 41%)
HSVhsv(326, 77%, 67%)
CMYKcmyk(0%, 76.6%, 32.7%, 32.9%)
CIE-LABlab(40.27, 58.03, -11.37)
CIE-LCHlch(40.27, 59.13, 348.91°)
OKLaboklab(50.89% 0.1776 -0.0296)
OKLCHoklch(50.89% 0.18 350.5)
XYZxyz(20.6491, 11.4158, 17.3324)
Luminance0.1141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2873 #28AB60
analogous
#A228AB #AB2873 #AB2832
triadic
#AB2873 #73AB28 #2873AB
tetradic
#AB2873 #ABA228 #28AB60 #2832AB
square
#AB2873 #ABA228 #28AB60 #2832AB
split-complementary
#AB2873 #32AB28 #28ABA2
monochromatic
#481130 #791C52 #AB2873 #D23E93 #DE70AF

Accessibility & contrast

On white

6.40
#AB2873 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AB2873 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2873
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2873#FFFFFF#000000##FFFFFF
##AB28731.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5075
Deuteranopia (green-blind)
#646770
Tritanopia (blue-blind)
#B81E4A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2873;
/* rgb */ color: rgb(171, 40, 115);
/* oklch */ color: oklch(50.9% 0.180 350.5);
Tailwind
colors: {
  custom: {
    50: '#c96f9b',
    500: '#ab2873',
    950: '#000000',
  },
}
SCSS
$custom: #ab2873;
$custom-light: #c96f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2873",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 325.649,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50894,
    "c": 0.18005,
    "h": 350.5
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#AB2873
secondary
#6AC491
accent
#E58843
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2873

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

Preview Lab → · Contrast checker → · Palette generator →

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