#AB2987#AB2987

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

Color values

HEX#AB2987
RGBrgb(171, 41, 135)
HSLhsl(317, 61%, 42%)
HSVhsv(317, 76%, 67%)
CMYKcmyk(0%, 76%, 21.1%, 32.9%)
CIE-LABlab(41.21, 60.23, -22.30)
CIE-LCHlch(41.21, 64.22, 339.68°)
OKLaboklab(51.84% 0.1807 -0.06)
OKLCHoklch(51.84% 0.19 341.6)
XYZxyz(21.9614, 11.9953, 24.0757)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2987 #29AB4D
analogous
#8E29AB #AB2987 #AB2946
triadic
#AB2987 #87AB29 #2987AB
tetradic
#AB2987 #AB8E29 #29AB4D #2946AB
square
#AB2987 #AB8E29 #29AB4D #2946AB
split-complementary
#AB2987 #46AB29 #29AB8E
monochromatic
#481139 #7A1D60 #AB2987 #D140A9 #DD71BF

Accessibility & contrast

On white

6.18
#AB2987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AB2987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2987
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2987#FFFFFF#000000##FFFFFF
##AB29871.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548A
Deuteranopia (green-blind)
#5F6984
Tritanopia (blue-blind)
#B62B55
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2987;
/* rgb */ color: rgb(171, 41, 135);
/* oklch */ color: oklch(51.8% 0.190 341.6);
Tailwind
colors: {
  custom: {
    50: '#c870aa',
    500: '#ab2987',
    950: '#000000',
  },
}
SCSS
$custom: #ab2987;
$custom-light: #c870aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2987",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 316.615,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51844,
    "c": 0.19043,
    "h": 341.6
  },
  "luminance": 0.11993
}

Semantic roles & 50–950 ramp

primary
#AB2987
secondary
#6CC484
accent
#E47043
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2987

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

Preview Lab → · Contrast checker → · Palette generator →

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