#AB408D#AB408D

#AB408D is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.4% C 0.165 H 340.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AB408D
RGBrgb(171, 64, 141)
HSLhsl(317, 46%, 46%)
HSVhsv(317, 63%, 67%)
CMYKcmyk(0%, 62.6%, 17.5%, 32.9%)
CIE-LABlab(44.59, 52.37, -20.74)
CIE-LCHlch(44.59, 56.33, 338.40°)
OKLaboklab(54.39% 0.1554 -0.0557)
OKLCHoklch(54.39% 0.165 340.3)
XYZxyz(23.4362, 14.2499, 26.7103)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB408D #40AB5E
analogous
#9340AB #AB408D #AB4057
triadic
#AB408D #8DAB40 #408DAB
tetradic
#AB408D #AB9340 #40AB5E #4057AB
square
#AB408D #AB9340 #40AB5E #4057AB
split-complementary
#AB408D #57AB40 #40AB93
monochromatic
#521F44 #7E2F68 #AB408D #C563A9 #D590C2

Accessibility & contrast

On white

5.46
#AB408D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AB408D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB408D
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB408D#FFFFFF#000000##FFFFFF
##AB408D1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465F8F
Deuteranopia (green-blind)
#66708A
Tritanopia (blue-blind)
#B54261
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab408d;
/* rgb */ color: rgb(171, 64, 141);
/* oklch */ color: oklch(54.4% 0.165 340.3);
Tailwind
colors: {
  custom: {
    50: '#c77bae',
    500: '#ab408d',
    950: '#000000',
  },
}
SCSS
$custom: #ab408d;
$custom-light: #c77bae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab408d",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 316.822,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54394,
    "c": 0.16514,
    "h": 340.3
  },
  "luminance": 0.14248
}

Semantic roles & 50–950 ramp

primary
#AB408D
secondary
#86C197
accent
#D57753
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #AB408D

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

Preview Lab → · Contrast checker → · Palette generator →

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