#B4158F#B4158F

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

Color values

HEX#B4158F
RGBrgb(180, 21, 143)
HSLhsl(314, 79%, 39%)
HSVhsv(314, 88%, 71%)
CMYKcmyk(0%, 88.3%, 20.6%, 29.4%)
CIE-LABlab(41.57, 68.09, -26.50)
CIE-LCHlch(41.57, 73.07, 338.73°)
OKLaboklab(52.53% 0.2045 -0.0716)
OKLCHoklch(52.53% 0.217 340.7)
XYZxyz(24.0493, 12.2254, 27.0745)
Luminance0.1222 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4158F #15B43A
analogous
#8915B4 #B4158F #B41540
triadic
#B4158F #8FB415 #158FB4
tetradic
#B4158F #B48915 #15B43A #1540B4
square
#B4158F #B48915 #15B43A #1540B4
split-complementary
#B4158F #40B415 #15B489
monochromatic
#460838 #7D0F63 #B4158F #E521B7 #EC58C9

Accessibility & contrast

On white

6.10
#B4158F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B4158F
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4158F#FFFFFF#000000##FFFFFF
##B4158F1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285292
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#BF1C55
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4158f;
/* rgb */ color: rgb(180, 21, 143);
/* oklch */ color: oklch(52.5% 0.217 340.7);
Tailwind
colors: {
  custom: {
    50: '#cf6cb0',
    500: '#b4158f',
    950: '#000000',
  },
}
SCSS
$custom: #b4158f;
$custom-light: #cf6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b4158f",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 313.962,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5253,
    "c": 0.21664,
    "h": 340.7
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#B4158F
secondary
#56CF72
accent
#F66032
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4158F

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

Preview Lab → · Contrast checker → · Palette generator →

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