#B42158#B42158

#B42158 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.184 H 4.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#B42158
RGBrgb(180, 33, 88)
HSLhsl(338, 69%, 42%)
HSVhsv(338, 82%, 71%)
CMYKcmyk(0%, 81.7%, 51.1%, 29.4%)
CIE-LABlab(40.41, 59.75, 6.02)
CIE-LCHlch(40.41, 60.06, 5.75°)
OKLaboklab(51.02% 0.1829 0.0158)
OKLCHoklch(51.02% 0.184 4.9)
XYZxyz(21.1296, 11.4986, 10.3375)
Luminance0.1150 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42158 #21B47D
analogous
#B421A2 #B42158 #B43421
triadic
#B42158 #58B421 #2158B4
tetradic
#B42158 #A2B421 #21B47D #3421B4
square
#B42158 #A2B421 #21B47D #3421B4
split-complementary
#B42158 #21B434 #21A2B4
monochromatic
#4D0E25 #80183F #B42158 #DA3875 #E46B99

Accessibility & contrast

On white

6.37
#B42158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#B42158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42158
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42158#FFFFFF#000000##FFFFFF
##B421581.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484D59
Deuteranopia (green-blind)
#6F6955
Tritanopia (blue-blind)
#C4003A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b42158;
/* rgb */ color: rgb(180, 33, 88);
/* oklch */ color: oklch(51.0% 0.184 4.9);
Tailwind
colors: {
  custom: {
    50: '#d16d86',
    500: '#b42158',
    950: '#000000',
  },
}
SCSS
$custom: #b42158;
$custom-light: #d16d86;
$custom-dark: #000000;
JSON
{
  "hex": "#b42158",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 337.551,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51018,
    "c": 0.18358,
    "h": 4.9
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#B42158
secondary
#67CAA5
accent
#ECAA3C
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B42158

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

Preview Lab → · Contrast checker → · Palette generator →

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