#B54271#B54271

#B54271 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.1% C 0.155 H 358.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B54271
RGBrgb(181, 66, 113)
HSLhsl(335, 47%, 48%)
HSVhsv(335, 64%, 71%)
CMYKcmyk(0%, 63.5%, 37.6%, 29%)
CIE-LABlab(45.52, 50.81, -2.12)
CIE-LCHlch(45.52, 50.85, 357.61°)
OKLaboklab(55.06% 0.1553 -0.0049)
OKLCHoklch(55.06% 0.155 358.2)
XYZxyz(23.9864, 14.9151, 17.2353)
Luminance0.1491 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54271 #42B586
analogous
#B542AA #B54271 #B54C42
triadic
#B54271 #71B542 #4271B5
tetradic
#B54271 #AAB542 #42B586 #4C42B5
square
#B54271 #AAB542 #42B586 #4C42B5
split-complementary
#B54271 #42B54C #42AAB5
monochromatic
#5B2139 #883255 #B54271 #C96B92 #D998B3

Accessibility & contrast

On white

5.27
#B54271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B54271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B54271
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54271#FFFFFF#000000##FFFFFF
##B542711.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#565E72
Deuteranopia (green-blind)
#75746E
Tritanopia (blue-blind)
#C33755
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b54271;
/* rgb */ color: rgb(181, 66, 113);
/* oklch */ color: oklch(55.1% 0.155 358.2);
Tailwind
colors: {
  custom: {
    50: '#cf7d99',
    500: '#b54271',
    950: '#000000',
  },
}
SCSS
$custom: #b54271;
$custom-light: #cf7d99;
$custom-dark: #000000;
JSON
{
  "hex": "#b54271",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 335.478,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55061,
    "c": 0.15534,
    "h": 358.2
  },
  "luminance": 0.14912
}

Semantic roles & 50–950 ramp

primary
#B54271
secondary
#8EC5AE
accent
#D6A052
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#140A0E
muted
#837C7E

Preview Lab

Preview with #B54271

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

Preview Lab → · Contrast checker → · Palette generator →

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