#B4157E#B4157E

#B4157E is a mid, highly saturated pink. Relative luminance 0.117; OKLCH L 51.7% C 0.207 H 347.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#B4157E
RGBrgb(180, 21, 126)
HSLhsl(320, 79%, 39%)
HSVhsv(320, 88%, 71%)
CMYKcmyk(0%, 88.3%, 30%, 29.4%)
CIE-LABlab(40.81, 66.05, -17.23)
CIE-LCHlch(40.81, 68.26, 345.38°)
OKLaboklab(51.74% 0.202 -0.0455)
OKLCHoklch(51.74% 0.207 347.3)
XYZxyz(22.8577, 11.7488, 20.7987)
Luminance0.1175 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4157E #15B44B
analogous
#9A15B4 #B4157E #B4152F
triadic
#B4157E #7EB415 #157EB4
tetradic
#B4157E #B49A15 #15B44B #152FB4
square
#B4157E #B49A15 #15B44B #152FB4
split-complementary
#B4157E #2FB415 #15B49A
monochromatic
#460831 #7D0F58 #B4157E #E521A3 #EC58B9

Accessibility & contrast

On white

6.27
#B4157E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B4157E
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4157E#FFFFFF#000000##FFFFFF
##B4157E1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F80
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#C1074B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b4157e;
/* rgb */ color: rgb(180, 21, 126);
/* oklch */ color: oklch(51.7% 0.207 347.3);
Tailwind
colors: {
  custom: {
    50: '#d06ba3',
    500: '#b4157e',
    950: '#000000',
  },
}
SCSS
$custom: #b4157e;
$custom-light: #d06ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#b4157e",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 320.377,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51738,
    "c": 0.20707,
    "h": 347.3
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#B4157E
secondary
#56CF7F
accent
#F67532
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#15080F
muted
#837B7F

Preview Lab

Preview with #B4157E

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

Preview Lab → · Contrast checker → · Palette generator →

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