#B4158E#B4158E

#B4158E is a mid, highly saturated pink. Relative luminance 0.122; OKLCH L 52.5% C 0.216 H 341.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B4158E
RGBrgb(180, 21, 142)
HSLhsl(314, 79%, 39%)
HSVhsv(314, 88%, 71%)
CMYKcmyk(0%, 88.3%, 21.1%, 29.4%)
CIE-LABlab(41.52, 67.96, -25.97)
CIE-LCHlch(41.52, 72.76, 339.09°)
OKLaboklab(52.48% 0.2044 -0.0701)
OKLCHoklch(52.48% 0.216 341.1)
XYZxyz(23.9739, 12.1952, 26.6773)
Luminance0.1219 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4158E #15B43B
analogous
#8B15B4 #B4158E #B4153E
triadic
#B4158E #8EB415 #158EB4
tetradic
#B4158E #B48B15 #15B43B #153EB4
square
#B4158E #B48B15 #15B43B #153EB4
split-complementary
#B4158E #3EB415 #15B48B
monochromatic
#460838 #7D0F63 #B4158E #E521B6 #EC58C8

Accessibility & contrast

On white

6.11
#B4158E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#B4158E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4158E
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4158E#FFFFFF#000000##FFFFFF
##B4158E1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295291
Deuteranopia (green-blind)
#5E6B8B
Tritanopia (blue-blind)
#C01B54
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4158e;
/* rgb */ color: rgb(180, 21, 142);
/* oklch */ color: oklch(52.5% 0.216 341.1);
Tailwind
colors: {
  custom: {
    50: '#cf6caf',
    500: '#b4158e',
    950: '#000000',
  },
}
SCSS
$custom: #b4158e;
$custom-light: #cf6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#b4158e",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 314.34,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5248,
    "c": 0.21605,
    "h": 341.1
  },
  "luminance": 0.12193
}

Semantic roles & 50–950 ramp

primary
#B4158E
secondary
#56CF73
accent
#F66132
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4158E

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

Preview Lab → · Contrast checker → · Palette generator →

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