#B42598#B42598

#B42598 is a mid, highly saturated pink. Relative luminance 0.133; OKLCH L 53.8% C 0.211 H 337.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B42598
RGBrgb(180, 37, 152)
HSLhsl(312, 66%, 43%)
HSVhsv(312, 79%, 71%)
CMYKcmyk(0%, 79.4%, 15.6%, 29.4%)
CIE-LABlab(43.21, 65.81, -29.41)
CIE-LCHlch(43.21, 72.08, 335.92°)
OKLaboklab(53.84% 0.1948 -0.08)
OKLCHoklch(53.84% 0.211 337.7)
XYZxyz(25.1520, 13.2959, 30.9414)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42598 #25B441
analogous
#8825B4 #B42598 #B42551
triadic
#B42598 #98B425 #2598B4
tetradic
#B42598 #B48825 #25B441 #2551B4
square
#B42598 #B48825 #25B441 #2551B4
split-complementary
#B42598 #51B425 #25B488
monochromatic
#4E1042 #811B6D #B42598 #D73FBA #E271CC

Accessibility & contrast

On white

5.74
#B42598 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B42598 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42598
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42598#FFFFFF#000000##FFFFFF
##B425981.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42598;
/* rgb */ color: rgb(180, 37, 152);
/* oklch */ color: oklch(53.8% 0.211 337.7);
Tailwind
colors: {
  custom: {
    50: '#cf71b6',
    500: '#b42598',
    950: '#000000',
  },
}
SCSS
$custom: #b42598;
$custom-light: #cf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42598",
  "rgb": {
    "r": 180,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 311.748,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53842,
    "c": 0.21055,
    "h": 337.7
  },
  "luminance": 0.13293
}

Semantic roles & 50–950 ramp

primary
#B42598
secondary
#6CC97E
accent
#E9603F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42598

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

Preview Lab → · Contrast checker → · Palette generator →

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