#B52E98#B52E98

#B52E98 is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.7% C 0.202 H 338.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B52E98
RGBrgb(181, 46, 152)
HSLhsl(313, 59%, 45%)
HSVhsv(313, 75%, 71%)
CMYKcmyk(0%, 74.6%, 16%, 29%)
CIE-LABlab(44.30, 63.41, -27.69)
CIE-LCHlch(44.30, 69.19, 336.41°)
OKLaboklab(54.66% 0.1878 -0.0751)
OKLCHoklch(54.66% 0.202 338.2)
XYZxyz(25.7011, 14.0472, 31.0575)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52E98 #2EB54B
analogous
#8F2EB5 #B52E98 #B52E55
triadic
#B52E98 #98B52E #2E98B5
tetradic
#B52E98 #B58F2E #2EB54B #2E55B5
square
#B52E98 #B58F2E #2EB54B #2E55B5
split-complementary
#B52E98 #55B52E #2EB58F
monochromatic
#531546 #84226F #B52E98 #D24EB6 #DE7FCA

Accessibility & contrast

On white

5.51
#B52E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B52E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52E98
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52E98#FFFFFF#000000##FFFFFF
##B52E981.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9B
Deuteranopia (green-blind)
#627095
Tritanopia (blue-blind)
#BF3560
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b52e98;
/* rgb */ color: rgb(181, 46, 152);
/* oklch */ color: oklch(54.7% 0.202 338.2);
Tailwind
colors: {
  custom: {
    50: '#cf74b6',
    500: '#b52e98',
    950: '#000000',
  },
}
SCSS
$custom: #b52e98;
$custom-light: #cf74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52e98",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 312.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.20227,
    "h": 338.2
  },
  "luminance": 0.14045
}

Semantic roles & 50–950 ramp

primary
#B52E98
secondary
#78C789
accent
#E36745
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52E98

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

Preview Lab → · Contrast checker → · Palette generator →

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