#B42052#B42052

#B42052 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.8% C 0.183 H 7.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B42052
RGBrgb(180, 32, 82)
HSLhsl(340, 70%, 42%)
HSVhsv(340, 82%, 71%)
CMYKcmyk(0%, 82.2%, 54.4%, 29.4%)
CIE-LABlab(40.16, 59.54, 9.47)
CIE-LCHlch(40.16, 60.29, 9.04°)
OKLaboklab(50.79% 0.1815 0.0243)
OKLCHoklch(50.79% 0.183 7.6)
XYZxyz(20.8639, 11.3486, 9.0729)
Luminance0.1135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42052 #20B482
analogous
#B4209C #B42052 #B43820
triadic
#B42052 #52B420 #2052B4
tetradic
#B42052 #9CB420 #20B482 #3820B4
square
#B42052 #9CB420 #20B482 #3820B4
split-complementary
#B42052 #20B438 #209CB4
monochromatic
#4C0E23 #80173A #B42052 #DB366E #E46A93

Accessibility & contrast

On white

6.42
#B42052 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#B42052 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42052
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42052#FFFFFF#000000##FFFFFF
##B420521.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494C53
Deuteranopia (green-blind)
#70694E
Tritanopia (blue-blind)
#C50037
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b42052;
/* rgb */ color: rgb(180, 32, 82);
/* oklch */ color: oklch(50.8% 0.183 7.6);
Tailwind
colors: {
  custom: {
    50: '#d16d82',
    500: '#b42052',
    950: '#000000',
  },
}
SCSS
$custom: #b42052;
$custom-light: #d16d82;
$custom-dark: #000000;
JSON
{
  "hex": "#b42052",
  "rgb": {
    "r": 180,
    "g": 32,
    "b": 82
  },
  "hsl": {
    "h": 339.73,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50786,
    "c": 0.18311,
    "h": 7.6
  },
  "luminance": 0.11346
}

Semantic roles & 50–950 ramp

primary
#B42052
secondary
#66CAA8
accent
#EDB13B
background
#FDF7F7
surface
#FBEDEE
border
#D4C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #B42052

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

Preview Lab → · Contrast checker → · Palette generator →

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