#AB288E#AB288E

#AB288E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.1% C 0.196 H 338.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AB288E
RGBrgb(171, 40, 142)
HSLhsl(313, 62%, 41%)
HSVhsv(313, 77%, 67%)
CMYKcmyk(0%, 76.6%, 17%, 32.9%)
CIE-LABlab(41.42, 61.50, -26.25)
CIE-LCHlch(41.42, 66.87, 336.89°)
OKLaboklab(52.1% 0.1826 -0.0712)
OKLCHoklch(52.1% 0.196 338.7)
XYZxyz(22.4364, 12.1307, 26.7458)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB288E #28AB45
analogous
#8728AB #AB288E #AB284D
triadic
#AB288E #8EAB28 #288EAB
tetradic
#AB288E #AB8728 #28AB45 #284DAB
square
#AB288E #AB8728 #28AB45 #284DAB
split-complementary
#AB288E #4DAB28 #28AB87
monochromatic
#48113C #791C65 #AB288E #D23EB1 #DE70C5

Accessibility & contrast

On white

6.13
#AB288E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB288E
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB288E#FFFFFF#000000##FFFFFF
##AB288E1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#5C698B
Tritanopia (blue-blind)
#B52E59
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab288e;
/* rgb */ color: rgb(171, 40, 142);
/* oklch */ color: oklch(52.1% 0.196 338.7);
Tailwind
colors: {
  custom: {
    50: '#c870af',
    500: '#ab288e',
    950: '#000000',
  },
}
SCSS
$custom: #ab288e;
$custom-light: #c870af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab288e",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 313.282,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52104,
    "c": 0.196,
    "h": 338.7
  },
  "luminance": 0.12129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB288E

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

Preview Lab → · Contrast checker → · Palette generator →

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