#AB5271#AB5271

#AB5271 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 55.7% C 0.121 H 359.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB5271
RGBrgb(171, 82, 113)
HSLhsl(339, 35%, 50%)
HSVhsv(339, 52%, 67%)
CMYKcmyk(0%, 52%, 33.9%, 32.9%)
CIE-LABlab(46.83, 39.84, -0.39)
CIE-LCHlch(46.83, 39.84, 359.44°)
OKLaboklab(55.73% 0.1211 -0.0005)
OKLCHoklch(55.73% 0.121 359.8)
XYZxyz(22.7936, 15.8869, 17.4856)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5271 #52AB8C
analogous
#AB529E #AB5271 #AB6052
triadic
#AB5271 #71AB52 #5271AB
tetradic
#AB5271 #9EAB52 #52AB8C #6052AB
square
#AB5271 #9EAB52 #52AB8C #6052AB
split-complementary
#AB5271 #52AB60 #529EAB
monochromatic
#582A3A #823E56 #AB5271 #C07B93 #D3A4B5

Accessibility & contrast

On white

5.03
#AB5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB5271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5271
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5271#FFFFFF#000000##FFFFFF
##AB52711.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606572
Deuteranopia (green-blind)
#77756F
Tritanopia (blue-blind)
#B74B5D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab5271;
/* rgb */ color: rgb(171, 82, 113);
/* oklch */ color: oklch(55.7% 0.121 359.8);
Tailwind
colors: {
  custom: {
    50: '#c78599',
    500: '#ab5271',
    950: '#000000',
  },
}
SCSS
$custom: #ab5271;
$custom-light: #c78599;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5271",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 339.101,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55728,
    "c": 0.12107,
    "h": 359.8
  },
  "luminance": 0.15885
}

Semantic roles & 50–950 ramp

primary
#AB5271
secondary
#98C1B3
accent
#CBA55D
background
#FCF8F9
surface
#F8EFF2
border
#D1CACC
text
#130B0E
muted
#827C7E

Preview Lab

Preview with #AB5271

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

Preview Lab → · Contrast checker → · Palette generator →

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