#AB2881#AB2881

#AB2881 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.188 H 344.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB2881
RGBrgb(171, 40, 129)
HSLhsl(319, 62%, 41%)
HSVhsv(319, 77%, 67%)
CMYKcmyk(0%, 76.6%, 24.6%, 32.9%)
CIE-LABlab(40.84, 59.74, -19.19)
CIE-LCHlch(40.84, 62.75, 342.19°)
OKLaboklab(51.49% 0.1807 -0.0512)
OKLCHoklch(51.49% 0.188 344.2)
XYZxyz(21.5167, 11.7628, 21.9019)
Luminance0.1176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2881 #28AB52
analogous
#9428AB #AB2881 #AB2840
triadic
#AB2881 #81AB28 #2881AB
tetradic
#AB2881 #AB9428 #28AB52 #2840AB
square
#AB2881 #AB9428 #28AB52 #2840AB
split-complementary
#AB2881 #40AB28 #28AB94
monochromatic
#481136 #791C5C #AB2881 #D23EA3 #DE70BA

Accessibility & contrast

On white

6.26
#AB2881 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2881
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2881#FFFFFF#000000##FFFFFF
##AB28811.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#60687E
Tritanopia (blue-blind)
#B62751
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2881;
/* rgb */ color: rgb(171, 40, 129);
/* oklch */ color: oklch(51.5% 0.188 344.2);
Tailwind
colors: {
  custom: {
    50: '#c870a5',
    500: '#ab2881',
    950: '#000000',
  },
}
SCSS
$custom: #ab2881;
$custom-light: #c870a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2881",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 319.237,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51489,
    "c": 0.18779,
    "h": 344.2
  },
  "luminance": 0.1176
}

Semantic roles & 50–950 ramp

primary
#AB2881
secondary
#6AC487
accent
#E57743
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2881

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

Preview Lab → · Contrast checker → · Palette generator →

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