#B52F9D#B52F9D

#B52F9D is a mid, highly saturated pink. Relative luminance 0.143; OKLCH L 55.0% C 0.205 H 336.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B52F9D
RGBrgb(181, 47, 157)
HSLhsl(311, 59%, 45%)
HSVhsv(311, 74%, 71%)
CMYKcmyk(0%, 74%, 13.3%, 29%)
CIE-LABlab(44.65, 63.81, -30.14)
CIE-LCHlch(44.65, 70.57, 334.71°)
OKLaboklab(54.99% 0.1874 -0.0821)
OKLCHoklch(54.99% 0.205 336.3)
XYZxyz(26.1588, 14.2935, 33.2730)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52F9D #2FB547
analogous
#8A2FB5 #B52F9D #B52F5A
triadic
#B52F9D #9DB52F #2F9DB5
tetradic
#B52F9D #B58A2F #2FB547 #2F5AB5
square
#B52F9D #B58A2F #2FB547 #2F5AB5
split-complementary
#B52F9D #5AB52F #2FB58A
monochromatic
#541649 #842273 #B52F9D #D150BA #DE80CD

Accessibility & contrast

On white

5.44
#B52F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B52F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52F9D
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52F9D#FFFFFF#000000##FFFFFF
##B52F9D1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA0
Deuteranopia (green-blind)
#60719A
Tritanopia (blue-blind)
#BE3863
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52f9d;
/* rgb */ color: rgb(181, 47, 157);
/* oklch */ color: oklch(55.0% 0.205 336.3);
Tailwind
colors: {
  custom: {
    50: '#cf75ba',
    500: '#b52f9d',
    950: '#000000',
  },
}
SCSS
$custom: #b52f9d;
$custom-light: #cf75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b52f9d",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 310.746,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54994,
    "c": 0.20458,
    "h": 336.3
  },
  "luminance": 0.14291
}

Semantic roles & 50–950 ramp

primary
#B52F9D
secondary
#79C787
accent
#E26246
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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