#AB288A#AB288A

#AB288A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.193 H 340.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AB288A
RGBrgb(171, 40, 138)
HSLhsl(315, 62%, 41%)
HSVhsv(315, 77%, 67%)
CMYKcmyk(0%, 76.6%, 19.3%, 32.9%)
CIE-LABlab(41.24, 60.94, -24.10)
CIE-LCHlch(41.24, 65.54, 338.43°)
OKLaboklab(51.91% 0.1821 -0.065)
OKLCHoklch(51.91% 0.193 340.3)
XYZxyz(22.1415, 12.0127, 25.1924)
Luminance0.1201 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB288A #28AB49
analogous
#8B28AB #AB288A #AB2848
triadic
#AB288A #8AAB28 #288AAB
tetradic
#AB288A #AB8B28 #28AB49 #2848AB
square
#AB288A #AB8B28 #28AB49 #2848AB
split-complementary
#AB288A #48AB28 #28AB8B
monochromatic
#48113A #791C62 #AB288A #D23EAD #DE70C2

Accessibility & contrast

On white

6.17
#AB288A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB288A
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB288A#FFFFFF#000000##FFFFFF
##AB288A1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#5D6987
Tritanopia (blue-blind)
#B52C56
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab288a;
/* rgb */ color: rgb(171, 40, 138);
/* oklch */ color: oklch(51.9% 0.193 340.3);
Tailwind
colors: {
  custom: {
    50: '#c870ac',
    500: '#ab288a',
    950: '#000000',
  },
}
SCSS
$custom: #ab288a;
$custom-light: #c870ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab288a",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 315.115,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51909,
    "c": 0.19339,
    "h": 340.3
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#AB288A
secondary
#6AC481
accent
#E56C43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB288A

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

Preview Lab → · Contrast checker → · Palette generator →

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