#B42498#B42498

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

Color values

HEX#B42498
RGBrgb(180, 36, 152)
HSLhsl(312, 67%, 42%)
HSVhsv(312, 80%, 71%)
CMYKcmyk(0%, 80%, 15.6%, 29.4%)
CIE-LABlab(43.11, 66.07, -29.55)
CIE-LCHlch(43.11, 72.38, 335.90°)
OKLaboklab(53.78% 0.1956 -0.0804)
OKLCHoklch(53.78% 0.211 337.7)
XYZxyz(25.1213, 13.2345, 30.9312)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42498 #24B440
analogous
#8824B4 #B42498 #B42450
triadic
#B42498 #98B424 #2498B4
tetradic
#B42498 #B48824 #24B440 #2450B4
square
#B42498 #B48824 #24B440 #2450B4
split-complementary
#B42498 #50B424 #24B488
monochromatic
#4E1042 #811A6D #B42498 #D83DBA #E270CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42498#FFFFFF#000000##FFFFFF
##B424981.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)
#2B589B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#BE2E5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42498;
/* rgb */ color: rgb(180, 36, 152);
/* oklch */ color: oklch(53.8% 0.211 337.7);
Tailwind
colors: {
  custom: {
    50: '#cf71b6',
    500: '#b42498',
    950: '#000000',
  },
}
SCSS
$custom: #b42498;
$custom-light: #cf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42498",
  "rgb": {
    "r": 180,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 311.667,
    "s": 66.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53776,
    "c": 0.21143,
    "h": 337.7
  },
  "luminance": 0.13232
}

Semantic roles & 50–950 ramp

primary
#B42498
secondary
#6BC97D
accent
#EA603E
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42498

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

Preview Lab → · Contrast checker → · Palette generator →

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