#AB2874#AB2874

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

Color values

HEX#AB2874
RGBrgb(171, 40, 116)
HSLhsl(325, 62%, 41%)
HSVhsv(325, 77%, 67%)
CMYKcmyk(0%, 76.6%, 32.2%, 32.9%)
CIE-LABlab(40.31, 58.14, -11.94)
CIE-LCHlch(40.31, 59.36, 348.40°)
OKLaboklab(50.93% 0.1779 -0.0311)
OKLCHoklch(50.93% 0.181 350.1)
XYZxyz(20.7069, 11.4389, 17.6371)
Luminance0.1144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2874 #28AB5F
analogous
#A128AB #AB2874 #AB2833
triadic
#AB2874 #74AB28 #2874AB
tetradic
#AB2874 #ABA128 #28AB5F #2833AB
square
#AB2874 #ABA128 #28AB5F #2833AB
split-complementary
#AB2874 #33AB28 #28ABA1
monochromatic
#481131 #791C52 #AB2874 #D23E94 #DE70AF

Accessibility & contrast

On white

6.39
#AB2874 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AB2874 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2874
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2874#FFFFFF#000000##FFFFFF
##AB28741.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5076
Deuteranopia (green-blind)
#646771
Tritanopia (blue-blind)
#B81F4B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2874;
/* rgb */ color: rgb(171, 40, 116);
/* oklch */ color: oklch(50.9% 0.181 350.1);
Tailwind
colors: {
  custom: {
    50: '#c96f9c',
    500: '#ab2874',
    950: '#000000',
  },
}
SCSS
$custom: #ab2874;
$custom-light: #c96f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2874",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 325.191,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50934,
    "c": 0.18056,
    "h": 350.1
  },
  "luminance": 0.11436
}

Semantic roles & 50–950 ramp

primary
#AB2874
secondary
#6AC490
accent
#E58743
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2874

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

Preview Lab → · Contrast checker → · Palette generator →

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