#B4158C#B4158C

#B4158C is a mid, highly saturated pink. Relative luminance 0.121; OKLCH L 52.4% C 0.215 H 341.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#B4158C
RGBrgb(180, 21, 140)
HSLhsl(315, 79%, 39%)
HSVhsv(315, 88%, 71%)
CMYKcmyk(0%, 88.3%, 22.2%, 29.4%)
CIE-LABlab(41.43, 67.71, -24.89)
CIE-LCHlch(41.43, 72.14, 339.82°)
OKLaboklab(52.38% 0.2041 -0.067)
OKLCHoklch(52.38% 0.215 341.8)
XYZxyz(23.8251, 12.1357, 25.8936)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4158C #15B43D
analogous
#8C15B4 #B4158C #B4153D
triadic
#B4158C #8CB415 #158CB4
tetradic
#B4158C #B48C15 #15B43D #153DB4
square
#B4158C #B48C15 #15B43D #153DB4
split-complementary
#B4158C #3DB415 #15B48C
monochromatic
#460837 #7D0F61 #B4158C #E521B4 #EC58C6

Accessibility & contrast

On white

6.13
#B4158C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#B4158C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4158C
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4158C#FFFFFF#000000##FFFFFF
##B4158C1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528F
Deuteranopia (green-blind)
#5F6A89
Tritanopia (blue-blind)
#C01953
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4158c;
/* rgb */ color: rgb(180, 21, 140);
/* oklch */ color: oklch(52.4% 0.215 341.8);
Tailwind
colors: {
  custom: {
    50: '#cf6cae',
    500: '#b4158c',
    950: '#000000',
  },
}
SCSS
$custom: #b4158c;
$custom-light: #cf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4158c",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 315.094,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52383,
    "c": 0.21486,
    "h": 341.8
  },
  "luminance": 0.12133
}

Semantic roles & 50–950 ramp

primary
#B4158C
secondary
#56CF75
accent
#F66332
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4158C

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

Preview Lab → · Contrast checker → · Palette generator →

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