#B52798#B52798

#B52798 is a mid, highly saturated pink. Relative luminance 0.135; OKLCH L 54.1% C 0.209 H 338.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B52798
RGBrgb(181, 39, 152)
HSLhsl(312, 65%, 43%)
HSVhsv(312, 78%, 71%)
CMYKcmyk(0%, 78.5%, 16%, 29%)
CIE-LABlab(43.57, 65.49, -28.82)
CIE-LCHlch(43.57, 71.55, 336.24°)
OKLaboklab(54.14% 0.1941 -0.0783)
OKLCHoklch(54.14% 0.209 338)
XYZxyz(25.4497, 13.5443, 30.9737)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52798 #27B544
analogous
#8B27B5 #B52798 #B52751
triadic
#B52798 #98B527 #2798B5
tetradic
#B52798 #B58B27 #27B544 #2751B5
square
#B52798 #B58B27 #27B544 #2751B5
split-complementary
#B52798 #51B527 #27B58B
monochromatic
#501143 #831C6E #B52798 #D643B8 #E175CB

Accessibility & contrast

On white

5.66
#B52798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B52798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52798
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52798#FFFFFF#000000##FFFFFF
##B527981.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#5F6F95
Tritanopia (blue-blind)
#BF305E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b52798;
/* rgb */ color: rgb(181, 39, 152);
/* oklch */ color: oklch(54.1% 0.209 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b52798',
    950: '#000000',
  },
}
SCSS
$custom: #b52798;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52798",
  "rgb": {
    "r": 181,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 312.254,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54138,
    "c": 0.20926,
    "h": 338
  },
  "luminance": 0.13542
}

Semantic roles & 50–950 ramp

primary
#B52798
secondary
#6FC981
accent
#E86240
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52798

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

Preview Lab → · Contrast checker → · Palette generator →

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