#B52598#B52598

#B52598 is a mid, highly saturated pink. Relative luminance 0.134; OKLCH L 54.0% C 0.211 H 338.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B52598
RGBrgb(181, 37, 152)
HSLhsl(312, 66%, 43%)
HSVhsv(312, 80%, 71%)
CMYKcmyk(0%, 79.6%, 16%, 29%)
CIE-LABlab(43.38, 66.03, -29.12)
CIE-LCHlch(43.38, 72.17, 336.20°)
OKLaboklab(54% 0.1957 -0.0791)
OKLCHoklch(54% 0.211 338)
XYZxyz(25.3857, 13.4164, 30.9524)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52598 #25B542
analogous
#8A25B5 #B52598 #B52550
triadic
#B52598 #98B525 #2598B5
tetradic
#B52598 #B58A25 #25B542 #2550B5
square
#B52598 #B58A25 #25B542 #2550B5
split-complementary
#B52598 #50B525 #25B58A
monochromatic
#4F1043 #821B6D #B52598 #D83FB9 #E272CC

Accessibility & contrast

On white

5.70
#B52598 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B52598 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52598
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52598#FFFFFF#000000##FFFFFF
##B525981.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589B
Deuteranopia (green-blind)
#5F6E95
Tritanopia (blue-blind)
#BF2E5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b52598;
/* rgb */ color: rgb(181, 37, 152);
/* oklch */ color: oklch(54.0% 0.211 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf71b6',
    500: '#b52598',
    950: '#000000',
  },
}
SCSS
$custom: #b52598;
$custom-light: #cf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52598",
  "rgb": {
    "r": 181,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 312.083,
    "s": 66.055,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54003,
    "c": 0.21109,
    "h": 338
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#B52598
secondary
#6DC97F
accent
#E9613F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52598

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

Preview Lab → · Contrast checker → · Palette generator →

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