#AB288B#AB288B

#AB288B is a mid, vivid pink. Relative luminance 0.120; OKLCH L 52.0% C 0.194 H 339.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB288B
RGBrgb(171, 40, 139)
HSLhsl(315, 62%, 41%)
HSVhsv(315, 77%, 67%)
CMYKcmyk(0%, 76.6%, 18.7%, 32.9%)
CIE-LABlab(41.28, 61.08, -24.64)
CIE-LCHlch(41.28, 65.86, 338.03°)
OKLaboklab(51.96% 0.1823 -0.0666)
OKLCHoklch(51.96% 0.194 339.9)
XYZxyz(22.2142, 12.0418, 25.5755)
Luminance0.1204 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB288B #28AB48
analogous
#8A28AB #AB288B #AB284A
triadic
#AB288B #8BAB28 #288BAB
tetradic
#AB288B #AB8A28 #28AB48 #284AAB
square
#AB288B #AB8A28 #28AB48 #284AAB
split-complementary
#AB288B #4AAB28 #28AB8A
monochromatic
#48113A #791C63 #AB288B #D23EAE #DE70C3

Accessibility & contrast

On white

6.16
#AB288B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB288B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB288B
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB288B#FFFFFF#000000##FFFFFF
##AB288B1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548E
Deuteranopia (green-blind)
#5D6988
Tritanopia (blue-blind)
#B52D57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab288b;
/* rgb */ color: rgb(171, 40, 139);
/* oklch */ color: oklch(52.0% 0.194 339.9);
Tailwind
colors: {
  custom: {
    50: '#c870ad',
    500: '#ab288b',
    950: '#000000',
  },
}
SCSS
$custom: #ab288b;
$custom-light: #c870ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab288b",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 314.656,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51957,
    "c": 0.19403,
    "h": 339.9
  },
  "luminance": 0.1204
}

Semantic roles & 50–950 ramp

primary
#AB288B
secondary
#6AC480
accent
#E56A43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB288B

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

Preview Lab → · Contrast checker → · Palette generator →

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