#AB2B78#AB2B78

#AB2B78 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.179 H 348.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AB2B78
RGBrgb(171, 43, 120)
HSLhsl(324, 60%, 42%)
HSVhsv(324, 75%, 67%)
CMYKcmyk(0%, 74.9%, 29.8%, 32.9%)
CIE-LABlab(40.81, 57.65, -13.67)
CIE-LCHlch(40.81, 59.25, 346.66°)
OKLaboklab(51.35% 0.1758 -0.0359)
OKLCHoklch(51.35% 0.179 348.5)
XYZxyz(21.0497, 11.7441, 18.9240)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B78 #2BAB5E
analogous
#9E2BAB #AB2B78 #AB2B38
triadic
#AB2B78 #78AB2B #2B78AB
tetradic
#AB2B78 #AB9E2B #2BAB5E #2B38AB
square
#AB2B78 #AB9E2B #2BAB5E #2B38AB
split-complementary
#AB2B78 #38AB2B #2BAB9E
monochromatic
#491233 #7A1F56 #AB2B78 #D04398 #DC74B3

Accessibility & contrast

On white

6.27
#AB2B78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB2B78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B78
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B78#FFFFFF#000000##FFFFFF
##AB2B781.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F527A
Deuteranopia (green-blind)
#646875
Tritanopia (blue-blind)
#B7254E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2b78;
/* rgb */ color: rgb(171, 43, 120);
/* oklch */ color: oklch(51.3% 0.179 348.5);
Tailwind
colors: {
  custom: {
    50: '#c8719f',
    500: '#ab2b78',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b78;
$custom-light: #c8719f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b78",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 323.906,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51346,
    "c": 0.17942,
    "h": 348.5
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#AB2B78
secondary
#6EC490
accent
#E38445
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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