#B52F9E#B52F9E

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

Color values

HEX#B52F9E
RGBrgb(181, 47, 158)
HSLhsl(310, 59%, 45%)
HSVhsv(310, 74%, 71%)
CMYKcmyk(0%, 74%, 12.7%, 29%)
CIE-LABlab(44.70, 63.95, -30.66)
CIE-LCHlch(44.70, 70.93, 334.38°)
OKLaboklab(55.04% 0.1875 -0.0836)
OKLCHoklch(55.04% 0.205 336)
XYZxyz(26.2445, 14.3278, 33.7245)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52F9E #2FB546
analogous
#892FB5 #B52F9E #B52F5B
triadic
#B52F9E #9EB52F #2F9EB5
tetradic
#B52F9E #B5892F #2FB546 #2F5BB5
square
#B52F9E #B5892F #2FB546 #2F5BB5
split-complementary
#B52F9E #5BB52F #2FB589
monochromatic
#541649 #842274 #B52F9E #D150BB #DE80CE

Accessibility & contrast

On white

5.43
#B52F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B52F9E
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52F9E#FFFFFF#000000##FFFFFF
##B52F9E1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA1
Deuteranopia (green-blind)
#60719B
Tritanopia (blue-blind)
#BE3963
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52f9e;
/* rgb */ color: rgb(181, 47, 158);
/* oklch */ color: oklch(55.0% 0.205 336.0);
Tailwind
colors: {
  custom: {
    50: '#cf75bb',
    500: '#b52f9e',
    950: '#000000',
  },
}
SCSS
$custom: #b52f9e;
$custom-light: #cf75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52f9e",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 310.299,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55044,
    "c": 0.20528,
    "h": 336
  },
  "luminance": 0.14325
}

Semantic roles & 50–950 ramp

primary
#B52F9E
secondary
#79C786
accent
#E26146
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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