#B4178B#B4178B

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

Color values

HEX#B4178B
RGBrgb(180, 23, 139)
HSLhsl(316, 77%, 40%)
HSVhsv(316, 87%, 71%)
CMYKcmyk(0%, 87.2%, 22.8%, 29.4%)
CIE-LABlab(41.51, 67.24, -24.16)
CIE-LCHlch(41.51, 71.45, 340.23°)
OKLaboklab(52.42% 0.2029 -0.065)
OKLCHoklch(52.42% 0.213 342.2)
XYZxyz(23.7899, 12.1828, 25.5198)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4178B #17B440
analogous
#8F17B4 #B4178B #B4173C
triadic
#B4178B #8BB417 #178BB4
tetradic
#B4178B #B48F17 #17B440 #173CB4
square
#B4178B #B48F17 #17B440 #173CB4
split-complementary
#B4178B #3CB417 #17B48F
monochromatic
#470937 #7E1061 #B4178B #E325B2 #EA5BC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4178B#FFFFFF#000000##FFFFFF
##B4178B1.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)
#2C528E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#C01A53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4178b;
/* rgb */ color: rgb(180, 23, 139);
/* oklch */ color: oklch(52.4% 0.213 342.2);
Tailwind
colors: {
  custom: {
    50: '#cf6cad',
    500: '#b4178b',
    950: '#000000',
  },
}
SCSS
$custom: #b4178b;
$custom-light: #cf6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4178b",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 315.669,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52421,
    "c": 0.21308,
    "h": 342.2
  },
  "luminance": 0.1218
}

Semantic roles & 50–950 ramp

primary
#B4178B
secondary
#59CE78
accent
#F46634
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4178B

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

Preview Lab → · Contrast checker → · Palette generator →

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