#AB2978#AB2978

#AB2978 is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.2% C 0.182 H 348.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AB2978
RGBrgb(171, 41, 120)
HSLhsl(324, 61%, 42%)
HSVhsv(324, 76%, 67%)
CMYKcmyk(0%, 76%, 29.8%, 32.9%)
CIE-LABlab(40.58, 58.30, -14.02)
CIE-LCHlch(40.58, 59.97, 346.48°)
OKLaboklab(51.18% 0.1778 -0.0369)
OKLCHoklch(51.18% 0.182 348.3)
XYZxyz(20.9788, 11.6023, 18.9003)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2978 #29AB5C
analogous
#9D29AB #AB2978 #AB2937
triadic
#AB2978 #78AB29 #2978AB
tetradic
#AB2978 #AB9D29 #29AB5C #2937AB
square
#AB2978 #AB9D29 #29AB5C #2937AB
split-complementary
#AB2978 #37AB29 #29AB9D
monochromatic
#481133 #7A1D55 #AB2978 #D14098 #DD71B3

Accessibility & contrast

On white

6.33
#AB2978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AB2978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2978
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2978#FFFFFF#000000##FFFFFF
##AB29781.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D517A
Deuteranopia (green-blind)
#636875
Tritanopia (blue-blind)
#B7234D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2978;
/* rgb */ color: rgb(171, 41, 120);
/* oklch */ color: oklch(51.2% 0.182 348.3);
Tailwind
colors: {
  custom: {
    50: '#c8709f',
    500: '#ab2978',
    950: '#000000',
  },
}
SCSS
$custom: #ab2978;
$custom-light: #c8709f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2978",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 323.538,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51179,
    "c": 0.1816,
    "h": 348.3
  },
  "luminance": 0.116
}

Semantic roles & 50–950 ramp

primary
#AB2978
secondary
#6CC48E
accent
#E48343
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2978

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

Preview Lab → · Contrast checker → · Palette generator →

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