#B4178F#B4178F

#B4178F is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.6% C 0.215 H 340.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B4178F
RGBrgb(180, 23, 143)
HSLhsl(314, 77%, 40%)
HSVhsv(314, 87%, 71%)
CMYKcmyk(0%, 87.2%, 20.6%, 29.4%)
CIE-LABlab(41.69, 67.74, -26.32)
CIE-LCHlch(41.69, 72.67, 338.77°)
OKLaboklab(52.62% 0.2034 -0.0711)
OKLCHoklch(52.62% 0.215 340.7)
XYZxyz(24.0875, 12.3019, 27.0872)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4178F #17B43C
analogous
#8A17B4 #B4178F #B41741
triadic
#B4178F #8FB417 #178FB4
tetradic
#B4178F #B48A17 #17B43C #1741B4
square
#B4178F #B48A17 #17B43C #1741B4
split-complementary
#B4178F #41B417 #17B48A
monochromatic
#470939 #7E1064 #B4178F #E325B6 #EA5BC8

Accessibility & contrast

On white

6.07
#B4178F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#B4178F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4178F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4178F#FFFFFF#000000##FFFFFF
##B4178F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#BF1E55
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b4178f;
/* rgb */ color: rgb(180, 23, 143);
/* oklch */ color: oklch(52.6% 0.215 340.7);
Tailwind
colors: {
  custom: {
    50: '#cf6cb0',
    500: '#b4178f',
    950: '#000000',
  },
}
SCSS
$custom: #b4178f;
$custom-light: #cf6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b4178f",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 314.14,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52615,
    "c": 0.21546,
    "h": 340.7
  },
  "luminance": 0.12299
}

Semantic roles & 50–950 ramp

primary
#B4178F
secondary
#59CE75
accent
#F46134
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B4178F

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

Preview Lab → · Contrast checker → · Palette generator →

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