#AB408A#AB408A

#AB408A is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.3% C 0.163 H 341.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB408A
RGBrgb(171, 64, 138)
HSLhsl(319, 46%, 46%)
HSVhsv(319, 63%, 67%)
CMYKcmyk(0%, 62.6%, 19.3%, 32.9%)
CIE-LABlab(44.46, 51.93, -19.11)
CIE-LCHlch(44.46, 55.33, 339.79°)
OKLaboklab(54.26% 0.1548 -0.0512)
OKLCHoklch(54.26% 0.163 341.7)
XYZxyz(23.2160, 14.1618, 25.5506)
Luminance0.1416 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB408A #40AB61
analogous
#9640AB #AB408A #AB4054
triadic
#AB408A #8AAB40 #408AAB
tetradic
#AB408A #AB9640 #40AB61 #4054AB
square
#AB408A #AB9640 #40AB61 #4054AB
split-complementary
#AB408A #54AB40 #40AB96
monochromatic
#521F42 #7E2F66 #AB408A #C563A7 #D590C0

Accessibility & contrast

On white

5.48
#AB408A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AB408A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB408A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB408A#FFFFFF#000000##FFFFFF
##AB408A1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485E8C
Deuteranopia (green-blind)
#677087
Tritanopia (blue-blind)
#B5415F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab408a;
/* rgb */ color: rgb(171, 64, 138);
/* oklch */ color: oklch(54.3% 0.163 341.7);
Tailwind
colors: {
  custom: {
    50: '#c77bac',
    500: '#ab408a',
    950: '#000000',
  },
}
SCSS
$custom: #ab408a;
$custom-light: #c77bac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab408a",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 318.505,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.16305,
    "h": 341.7
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#AB408A
secondary
#86C198
accent
#D57B53
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #AB408A

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

Preview Lab → · Contrast checker → · Palette generator →

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