#AB4271#AB4271

#AB4271 is a mid, vivid pink. Relative luminance 0.137; OKLCH L 53.5% C 0.146 H 355.3°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AB4271
RGBrgb(171, 66, 113)
HSLhsl(333, 44%, 46%)
HSVhsv(333, 61%, 67%)
CMYKcmyk(0%, 61.4%, 33.9%, 32.9%)
CIE-LABlab(43.87, 47.65, -4.74)
CIE-LCHlch(43.87, 47.88, 354.32°)
OKLaboklab(53.52% 0.1453 -0.0119)
OKLCHoklch(53.52% 0.146 355.3)
XYZxyz(21.7246, 13.7489, 17.1293)
Luminance0.1375 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4271 #42AB7C
analogous
#AB42A6 #AB4271 #AB4842
triadic
#AB4271 #71AB42 #4271AB
tetradic
#AB4271 #A6AB42 #42AB7C #4842AB
square
#AB4271 #A6AB42 #42AB7C #4842AB
split-complementary
#AB4271 #42AB48 #42A6AB
monochromatic
#532037 #7F3154 #AB4271 #C46690 #D592B0

Accessibility & contrast

On white

5.60
#AB4271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB4271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4271
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4271#FFFFFF#000000##FFFFFF
##AB42711.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535C72
Deuteranopia (green-blind)
#6F6F6F
Tritanopia (blue-blind)
#B83B55
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab4271;
/* rgb */ color: rgb(171, 66, 113);
/* oklch */ color: oklch(53.5% 0.146 355.3);
Tailwind
colors: {
  custom: {
    50: '#c87c99',
    500: '#ab4271',
    950: '#000000',
  },
}
SCSS
$custom: #ab4271;
$custom-light: #c87c99;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4271",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 333.143,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.14574,
    "h": 355.3
  },
  "luminance": 0.13747
}

Semantic roles & 50–950 ramp

primary
#AB4271
secondary
#88C0A7
accent
#D49B54
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AB4271

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

Preview Lab → · Contrast checker → · Palette generator →

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