#AB2888#AB2888

#AB2888 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.192 H 341.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB2888
RGBrgb(171, 40, 136)
HSLhsl(316, 62%, 41%)
HSVhsv(316, 77%, 67%)
CMYKcmyk(0%, 76.6%, 20.5%, 32.9%)
CIE-LABlab(41.15, 60.67, -23.02)
CIE-LCHlch(41.15, 64.89, 339.23°)
OKLaboklab(51.81% 0.1818 -0.062)
OKLCHoklch(51.81% 0.192 341.2)
XYZxyz(21.9980, 11.9553, 24.4369)
Luminance0.1195 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2888 #28AB4B
analogous
#8D28AB #AB2888 #AB2846
triadic
#AB2888 #88AB28 #2888AB
tetradic
#AB2888 #AB8D28 #28AB4B #2846AB
square
#AB2888 #AB8D28 #28AB4B #2846AB
split-complementary
#AB2888 #46AB28 #28AB8D
monochromatic
#481139 #791C61 #AB2888 #D23EAA #DE70C0

Accessibility & contrast

On white

6.19
#AB2888 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB2888 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2888
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2888#FFFFFF#000000##FFFFFF
##AB28881.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548B
Deuteranopia (green-blind)
#5E6985
Tritanopia (blue-blind)
#B62B55
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2888;
/* rgb */ color: rgb(171, 40, 136);
/* oklch */ color: oklch(51.8% 0.192 341.2);
Tailwind
colors: {
  custom: {
    50: '#c870ab',
    500: '#ab2888',
    950: '#000000',
  },
}
SCSS
$custom: #ab2888;
$custom-light: #c870ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2888",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 316.031,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51813,
    "c": 0.1921,
    "h": 341.2
  },
  "luminance": 0.11953
}

Semantic roles & 50–950 ramp

primary
#AB2888
secondary
#6AC482
accent
#E56E43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2888

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

Preview Lab → · Contrast checker → · Palette generator →

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