#B52F8E#B52F8E

#B52F8E is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.3% C 0.195 H 342.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B52F8E
RGBrgb(181, 47, 142)
HSLhsl(317, 59%, 45%)
HSVhsv(317, 74%, 71%)
CMYKcmyk(0%, 74%, 21.5%, 29%)
CIE-LABlab(43.96, 61.71, -22.17)
CIE-LCHlch(43.96, 65.57, 340.24°)
OKLaboklab(54.27% 0.1854 -0.0595)
OKLCHoklch(54.27% 0.195 342.2)
XYZxyz(24.9559, 13.8123, 26.9377)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52F8E #2FB556
analogous
#992FB5 #B52F8E #B52F4B
triadic
#B52F8E #8EB52F #2F8EB5
tetradic
#B52F8E #B5992F #2FB556 #2F4BB5
square
#B52F8E #B5992F #2FB556 #2F4BB5
split-complementary
#B52F8E #4BB52F #2FB599
monochromatic
#541642 #842268 #B52F8E #D150AC #DE80C3

Accessibility & contrast

On white

5.58
#B52F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B52F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52F8E
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52F8E#FFFFFF#000000##FFFFFF
##B52F8E1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#66708B
Tritanopia (blue-blind)
#C0315B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b52f8e;
/* rgb */ color: rgb(181, 47, 142);
/* oklch */ color: oklch(54.3% 0.195 342.2);
Tailwind
colors: {
  custom: {
    50: '#cf74af',
    500: '#b52f8e',
    950: '#000000',
  },
}
SCSS
$custom: #b52f8e;
$custom-light: #cf74af;
$custom-dark: #000000;
JSON
{
  "hex": "#b52f8e",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 317.463,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54271,
    "c": 0.1947,
    "h": 342.2
  },
  "luminance": 0.1381
}

Semantic roles & 50–950 ramp

primary
#B52F8E
secondary
#79C790
accent
#E27346
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B52F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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