#B52F87#B52F87

#B52F87 is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.0% C 0.190 H 345.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B52F87
RGBrgb(181, 47, 135)
HSLhsl(321, 59%, 45%)
HSVhsv(321, 74%, 71%)
CMYKcmyk(0%, 74%, 25.4%, 29%)
CIE-LABlab(43.67, 60.80, -18.37)
CIE-LCHlch(43.67, 63.51, 343.19°)
OKLaboklab(53.96% 0.1841 -0.0488)
OKLCHoklch(53.96% 0.19 345.1)
XYZxyz(24.4468, 13.6087, 24.2563)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52F87 #2FB55D
analogous
#A02FB5 #B52F87 #B52F44
triadic
#B52F87 #87B52F #2F87B5
tetradic
#B52F87 #B5A02F #2FB55D #2F44B5
square
#B52F87 #B5A02F #2FB55D #2F44B5
split-complementary
#B52F87 #44B52F #2FB5A0
monochromatic
#54163F #842263 #B52F87 #D150A5 #DE80BE

Accessibility & contrast

On white

5.64
#B52F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B52F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52F87
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52F87#FFFFFF#000000##FFFFFF
##B52F871.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405989
Deuteranopia (green-blind)
#686F84
Tritanopia (blue-blind)
#C12D57
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b52f87;
/* rgb */ color: rgb(181, 47, 135);
/* oklch */ color: oklch(54.0% 0.190 345.1);
Tailwind
colors: {
  custom: {
    50: '#cf74aa',
    500: '#b52f87',
    950: '#000000',
  },
}
SCSS
$custom: #b52f87;
$custom-light: #cf74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#b52f87",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 320.597,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53959,
    "c": 0.19047,
    "h": 345.1
  },
  "luminance": 0.13606
}

Semantic roles & 50–950 ramp

primary
#B52F87
secondary
#79C794
accent
#E27B46
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B52F87

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

Preview Lab → · Contrast checker → · Palette generator →

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