#AB288F#AB288F

#AB288F is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.2% C 0.197 H 338.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AB288F
RGBrgb(171, 40, 143)
HSLhsl(313, 62%, 41%)
HSVhsv(313, 77%, 67%)
CMYKcmyk(0%, 76.6%, 16.4%, 32.9%)
CIE-LABlab(41.47, 61.64, -26.78)
CIE-LCHlch(41.47, 67.21, 336.51°)
OKLaboklab(52.15% 0.1827 -0.0727)
OKLCHoklch(52.15% 0.197 338.3)
XYZxyz(22.5118, 12.1609, 27.1430)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB288F #28AB44
analogous
#8628AB #AB288F #AB284E
triadic
#AB288F #8FAB28 #288FAB
tetradic
#AB288F #AB8628 #28AB44 #284EAB
square
#AB288F #AB8628 #28AB44 #284EAB
split-complementary
#AB288F #4EAB28 #28AB86
monochromatic
#48113C #791C66 #AB288F #D23EB2 #DE70C6

Accessibility & contrast

On white

6.12
#AB288F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB288F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB288F
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB288F#FFFFFF#000000##FFFFFF
##AB288F1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5592
Deuteranopia (green-blind)
#5B698C
Tritanopia (blue-blind)
#B52F59
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab288f;
/* rgb */ color: rgb(171, 40, 143);
/* oklch */ color: oklch(52.2% 0.197 338.3);
Tailwind
colors: {
  custom: {
    50: '#c870b0',
    500: '#ab288f',
    950: '#000000',
  },
}
SCSS
$custom: #ab288f;
$custom-light: #c870b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab288f",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 312.824,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52154,
    "c": 0.19666,
    "h": 338.3
  },
  "luminance": 0.12159
}

Semantic roles & 50–950 ramp

primary
#AB288F
secondary
#6AC47E
accent
#E56543
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB288F

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

Preview Lab → · Contrast checker → · Palette generator →

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