#AB2882#AB2882

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

Color values

HEX#AB2882
RGBrgb(171, 40, 130)
HSLhsl(319, 62%, 41%)
HSVhsv(319, 77%, 67%)
CMYKcmyk(0%, 76.6%, 24%, 32.9%)
CIE-LABlab(40.88, 59.87, -19.74)
CIE-LCHlch(40.88, 63.05, 341.75°)
OKLaboklab(51.53% 0.1809 -0.0528)
OKLCHoklch(51.53% 0.188 343.7)
XYZxyz(21.5835, 11.7895, 22.2537)
Luminance0.1179 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2882 #28AB51
analogous
#9328AB #AB2882 #AB2841
triadic
#AB2882 #82AB28 #2882AB
tetradic
#AB2882 #AB9328 #28AB51 #2841AB
square
#AB2882 #AB9328 #28AB51 #2841AB
split-complementary
#AB2882 #41AB28 #28AB93
monochromatic
#481137 #791C5C #AB2882 #D23EA4 #DE70BB

Accessibility & contrast

On white

6.25
#AB2882 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB2882 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2882
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2882#FFFFFF#000000##FFFFFF
##AB28821.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375384
Deuteranopia (green-blind)
#60687F
Tritanopia (blue-blind)
#B62852
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2882;
/* rgb */ color: rgb(171, 40, 130);
/* oklch */ color: oklch(51.5% 0.188 343.7);
Tailwind
colors: {
  custom: {
    50: '#c870a6',
    500: '#ab2882',
    950: '#000000',
  },
}
SCSS
$custom: #ab2882;
$custom-light: #c870a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2882",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 318.779,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51534,
    "c": 0.18839,
    "h": 343.7
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2882

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

Preview Lab → · Contrast checker → · Palette generator →

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