#B4178A#B4178A

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

Color values

HEX#B4178A
RGBrgb(180, 23, 138)
HSLhsl(316, 77%, 40%)
HSVhsv(316, 87%, 71%)
CMYKcmyk(0%, 87.2%, 23.3%, 29.4%)
CIE-LABlab(41.46, 67.11, -23.62)
CIE-LCHlch(41.46, 71.15, 340.61°)
OKLaboklab(52.37% 0.2028 -0.0635)
OKLCHoklch(52.37% 0.213 342.6)
XYZxyz(23.7172, 12.1537, 25.1367)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4178A #17B441
analogous
#9017B4 #B4178A #B4173B
triadic
#B4178A #8AB417 #178AB4
tetradic
#B4178A #B49017 #17B441 #173BB4
square
#B4178A #B49017 #17B441 #173BB4
split-complementary
#B4178A #3BB417 #17B490
monochromatic
#470937 #7E1060 #B4178A #E325B0 #EA5BC4

Accessibility & contrast

On white

6.12
#B4178A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#B4178A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4178A
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4178A#FFFFFF#000000##FFFFFF
##B4178A1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#C01952
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4178a;
/* rgb */ color: rgb(180, 23, 138);
/* oklch */ color: oklch(52.4% 0.213 342.6);
Tailwind
colors: {
  custom: {
    50: '#cf6cac',
    500: '#b4178a',
    950: '#000000',
  },
}
SCSS
$custom: #b4178a;
$custom-light: #cf6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#b4178a",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 316.051,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52373,
    "c": 0.21251,
    "h": 342.6
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4178A

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

Preview Lab → · Contrast checker → · Palette generator →

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