#B4158B#B4158B

#B4158B is a mid, highly saturated pink. Relative luminance 0.121; OKLCH L 52.3% C 0.214 H 342.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#B4158B
RGBrgb(180, 21, 139)
HSLhsl(315, 79%, 39%)
HSVhsv(315, 88%, 71%)
CMYKcmyk(0%, 88.3%, 22.8%, 29.4%)
CIE-LABlab(41.38, 67.59, -24.35)
CIE-LCHlch(41.38, 71.84, 340.19°)
OKLaboklab(52.33% 0.204 -0.0655)
OKLCHoklch(52.33% 0.214 342.2)
XYZxyz(23.7517, 12.1064, 25.5070)
Luminance0.1210 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4158B #15B43E
analogous
#8E15B4 #B4158B #B4153B
triadic
#B4158B #8BB415 #158BB4
tetradic
#B4158B #B48E15 #15B43E #153BB4
square
#B4158B #B48E15 #15B43E #153BB4
split-complementary
#B4158B #3BB415 #15B48E
monochromatic
#460836 #7D0F61 #B4158B #E521B3 #EC58C5

Accessibility & contrast

On white

6.14
#B4158B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#B4158B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4158B
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4158B#FFFFFF#000000##FFFFFF
##B4158B1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#C01853
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4158b;
/* rgb */ color: rgb(180, 21, 139);
/* oklch */ color: oklch(52.3% 0.214 342.2);
Tailwind
colors: {
  custom: {
    50: '#cf6cad',
    500: '#b4158b',
    950: '#000000',
  },
}
SCSS
$custom: #b4158b;
$custom-light: #cf6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4158b",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 315.472,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.21428,
    "h": 342.2
  },
  "luminance": 0.12104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4158B

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

Preview Lab → · Contrast checker → · Palette generator →

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