#B4178C#B4178C

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

Color values

HEX#B4178C
RGBrgb(180, 23, 140)
HSLhsl(315, 77%, 40%)
HSVhsv(315, 87%, 71%)
CMYKcmyk(0%, 87.2%, 22.2%, 29.4%)
CIE-LABlab(41.55, 67.36, -24.70)
CIE-LCHlch(41.55, 71.75, 339.86°)
OKLaboklab(52.47% 0.2031 -0.0665)
OKLCHoklch(52.47% 0.214 341.9)
XYZxyz(23.8633, 12.2122, 25.9063)
Luminance0.1221 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4178C #17B43F
analogous
#8E17B4 #B4178C #B4173D
triadic
#B4178C #8CB417 #178CB4
tetradic
#B4178C #B48E17 #17B43F #173DB4
square
#B4178C #B48E17 #17B43F #173DB4
split-complementary
#B4178C #3DB417 #17B48E
monochromatic
#470938 #7E1062 #B4178C #E325B3 #EA5BC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4178C#FFFFFF#000000##FFFFFF
##B4178C1.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)
#2C528F
Deuteranopia (green-blind)
#5F6B89
Tritanopia (blue-blind)
#C01B54
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4178c;
/* rgb */ color: rgb(180, 23, 140);
/* oklch */ color: oklch(52.5% 0.214 341.9);
Tailwind
colors: {
  custom: {
    50: '#cf6cae',
    500: '#b4178c',
    950: '#000000',
  },
}
SCSS
$custom: #b4178c;
$custom-light: #cf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4178c",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 315.287,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52469,
    "c": 0.21368,
    "h": 341.9
  },
  "luminance": 0.1221
}

Semantic roles & 50–950 ramp

primary
#B4178C
secondary
#59CE77
accent
#F46534
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4178C

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

Preview Lab → · Contrast checker → · Palette generator →

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