#B52298#B52298

#B52298 is a mid, highly saturated pink. Relative luminance 0.132; OKLCH L 53.8% C 0.214 H 337.9°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B52298
RGBrgb(181, 34, 152)
HSLhsl(312, 68%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 81.2%, 16%, 29%)
CIE-LABlab(43.12, 66.80, -29.53)
CIE-LCHlch(43.12, 73.04, 336.15°)
OKLaboklab(53.81% 0.198 -0.0803)
OKLCHoklch(53.81% 0.214 337.9)
XYZxyz(25.2962, 13.2373, 30.9225)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52298 #22B53F
analogous
#8922B5 #B52298 #B5224E
triadic
#B52298 #98B522 #2298B5
tetradic
#B52298 #B58922 #22B53F #224EB5
square
#B52298 #B58922 #22B53F #224EB5
split-complementary
#B52298 #4EB522 #22B589
monochromatic
#4E0F41 #81186D #B52298 #DA3ABA #E46ECC

Accessibility & contrast

On white

5.76
#B52298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B52298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52298
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52298#FFFFFF#000000##FFFFFF
##B522981.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#BF2C5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b52298;
/* rgb */ color: rgb(181, 34, 152);
/* oklch */ color: oklch(53.8% 0.214 337.9);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b52298',
    950: '#000000',
  },
}
SCSS
$custom: #b52298;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52298",
  "rgb": {
    "r": 181,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 311.837,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53813,
    "c": 0.21366,
    "h": 337.9
  },
  "luminance": 0.13235
}

Semantic roles & 50–950 ramp

primary
#B52298
secondary
#69CA7C
accent
#EB5F3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52298

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

Preview Lab → · Contrast checker → · Palette generator →

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