#B4158D#B4158D

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

Color values

HEX#B4158D
RGBrgb(180, 21, 141)
HSLhsl(315, 79%, 39%)
HSVhsv(315, 88%, 71%)
CMYKcmyk(0%, 88.3%, 21.7%, 29.4%)
CIE-LABlab(41.48, 67.84, -25.43)
CIE-LCHlch(41.48, 72.45, 339.45°)
OKLaboklab(52.43% 0.2042 -0.0686)
OKLCHoklch(52.43% 0.215 341.4)
XYZxyz(23.8992, 12.1653, 26.2837)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4158D #15B43C
analogous
#8C15B4 #B4158D #B4153E
triadic
#B4158D #8DB415 #158DB4
tetradic
#B4158D #B48C15 #15B43C #153EB4
square
#B4158D #B48C15 #15B43C #153EB4
split-complementary
#B4158D #3EB415 #15B48C
monochromatic
#460837 #7D0F62 #B4158D #E521B5 #EC58C7

Accessibility & contrast

On white

6.12
#B4158D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B4158D
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4158D#FFFFFF#000000##FFFFFF
##B4158D1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5290
Deuteranopia (green-blind)
#5F6A8A
Tritanopia (blue-blind)
#C01A54
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4158d;
/* rgb */ color: rgb(180, 21, 141);
/* oklch */ color: oklch(52.4% 0.215 341.4);
Tailwind
colors: {
  custom: {
    50: '#cf6cae',
    500: '#b4158d',
    950: '#000000',
  },
}
SCSS
$custom: #b4158d;
$custom-light: #cf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4158d",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 314.717,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52431,
    "c": 0.21545,
    "h": 341.4
  },
  "luminance": 0.12163
}

Semantic roles & 50–950 ramp

primary
#B4158D
secondary
#56CF74
accent
#F66232
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4158D

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

Preview Lab → · Contrast checker → · Palette generator →

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