#B4157F#B4157F

#B4157F is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 346.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#B4157F
RGBrgb(180, 21, 127)
HSLhsl(320, 79%, 39%)
HSVhsv(320, 88%, 71%)
CMYKcmyk(0%, 88.3%, 29.4%, 29.4%)
CIE-LABlab(40.86, 66.16, -17.78)
CIE-LCHlch(40.86, 68.51, 344.96°)
OKLaboklab(51.78% 0.2022 -0.0471)
OKLCHoklch(51.78% 0.208 346.9)
XYZxyz(22.9226, 11.7747, 21.1402)
Luminance0.1177 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4157F #15B44A
analogous
#9A15B4 #B4157F #B41530
triadic
#B4157F #7FB415 #157FB4
tetradic
#B4157F #B49A15 #15B44A #1530B4
square
#B4157F #B49A15 #15B44A #1530B4
split-complementary
#B4157F #30B415 #15B49A
monochromatic
#460832 #7D0F58 #B4157F #E521A4 #EC58BA

Accessibility & contrast

On white

6.26
#B4157F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#B4157F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4157F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4157F#FFFFFF#000000##FFFFFF
##B4157F1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345081
Deuteranopia (green-blind)
#636A7C
Tritanopia (blue-blind)
#C1084C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b4157f;
/* rgb */ color: rgb(180, 21, 127);
/* oklch */ color: oklch(51.8% 0.208 346.9);
Tailwind
colors: {
  custom: {
    50: '#cf6ba4',
    500: '#b4157f',
    950: '#000000',
  },
}
SCSS
$custom: #b4157f;
$custom-light: #cf6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#b4157f",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 320,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.20759,
    "h": 346.9
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#B4157F
secondary
#56CF7E
accent
#F67332
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#15080F
muted
#837B7F

Preview Lab

Preview with #B4157F

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

Preview Lab → · Contrast checker → · Palette generator →

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