#B42998#B42998

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

Color values

HEX#B42998
RGBrgb(180, 41, 152)
HSLhsl(312, 63%, 43%)
HSVhsv(312, 77%, 71%)
CMYKcmyk(0%, 77.2%, 15.6%, 29.4%)
CIE-LABlab(43.59, 64.70, -28.80)
CIE-LCHlch(43.59, 70.82, 336.00°)
OKLaboklab(54.12% 0.1914 -0.0783)
OKLCHoklch(54.12% 0.207 337.8)
XYZxyz(25.2834, 13.5586, 30.9852)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42998 #29B445
analogous
#8A29B4 #B42998 #B42953
triadic
#B42998 #98B429 #2998B4
tetradic
#B42998 #B48A29 #29B445 #2953B4
square
#B42998 #B48A29 #29B445 #2953B4
split-complementary
#B42998 #53B429 #29B48A
monochromatic
#501244 #821E6E #B42998 #D545B8 #E077CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42998#FFFFFF#000000##FFFFFF
##B429981.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)
#2F599B
Deuteranopia (green-blind)
#5F6F95
Tritanopia (blue-blind)
#BE315E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42998;
/* rgb */ color: rgb(180, 41, 152);
/* oklch */ color: oklch(54.1% 0.207 337.8);
Tailwind
colors: {
  custom: {
    50: '#ce72b6',
    500: '#b42998',
    950: '#000000',
  },
}
SCSS
$custom: #b42998;
$custom-light: #ce72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42998",
  "rgb": {
    "r": 180,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 312.086,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54121,
    "c": 0.2068,
    "h": 337.8
  },
  "luminance": 0.13556
}

Semantic roles & 50–950 ramp

primary
#B42998
secondary
#71C882
accent
#E66342
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42998

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

Preview Lab → · Contrast checker → · Palette generator →

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