#B42771#B42771

#B42771 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.3% C 0.187 H 354.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#B42771
RGBrgb(180, 39, 113)
HSLhsl(329, 64%, 43%)
HSVhsv(329, 78%, 71%)
CMYKcmyk(0%, 78.3%, 37.2%, 29.4%)
CIE-LABlab(41.77, 60.45, -7.71)
CIE-LCHlch(41.77, 60.94, 352.73°)
OKLaboklab(52.27% 0.1857 -0.0196)
OKLCHoklch(52.27% 0.187 354)
XYZxyz(22.5300, 12.3494, 16.8168)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42771 #27B46A
analogous
#B127B4 #B42771 #B4272A
triadic
#B42771 #71B427 #2771B4
tetradic
#B42771 #B4B127 #27B46A #272AB4
square
#B42771 #B4B127 #27B46A #272AB4
split-complementary
#B42771 #2AB427 #27B4B1
monochromatic
#4F1132 #821C51 #B42771 #D64290 #E174AD

Accessibility & contrast

On white

6.05
#B42771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B42771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42771
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42771#FFFFFF#000000##FFFFFF
##B427711.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445273
Deuteranopia (green-blind)
#6B6C6E
Tritanopia (blue-blind)
#C21549
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b42771;
/* rgb */ color: rgb(180, 39, 113);
/* oklch */ color: oklch(52.3% 0.187 354.0);
Tailwind
colors: {
  custom: {
    50: '#cf7099',
    500: '#b42771',
    950: '#000000',
  },
}
SCSS
$custom: #b42771;
$custom-light: #cf7099;
$custom-dark: #000000;
JSON
{
  "hex": "#b42771",
  "rgb": {
    "r": 180,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 328.511,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52266,
    "c": 0.18677,
    "h": 354
  },
  "luminance": 0.12347
}

Semantic roles & 50–950 ramp

primary
#B42771
secondary
#6FC899
accent
#E79040
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080E
muted
#837B7E

Preview Lab

Preview with #B42771

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

Preview Lab → · Contrast checker → · Palette generator →

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