#B4179C#B4179C

#B4179C is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.3% C 0.224 H 336.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#B4179C
RGBrgb(180, 23, 156)
HSLhsl(309, 77%, 40%)
HSVhsv(309, 87%, 71%)
CMYKcmyk(0%, 87.2%, 13.3%, 29.4%)
CIE-LABlab(42.34, 69.46, -33.19)
CIE-LCHlch(42.34, 76.98, 334.46°)
OKLaboklab(53.29% 0.2043 -0.0907)
OKLCHoklch(53.29% 0.224 336.1)
XYZxyz(25.1300, 12.7188, 32.5776)
Luminance0.1272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4179C #17B42F
analogous
#7E17B4 #B4179C #B4174E
triadic
#B4179C #9CB417 #179CB4
tetradic
#B4179C #B47E17 #17B42F #174EB4
square
#B4179C #B47E17 #17B42F #174EB4
split-complementary
#B4179C #4EB417 #17B47E
monochromatic
#47093E #7E106D #B4179C #E325C6 #EA5BD4

Accessibility & contrast

On white

5.93
#B4179C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#B4179C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4179C
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4179C#FFFFFF#000000##FFFFFF
##B4179C1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A569F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#BE285D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4179c;
/* rgb */ color: rgb(180, 23, 156);
/* oklch */ color: oklch(53.3% 0.224 336.1);
Tailwind
colors: {
  custom: {
    50: '#cf6db9',
    500: '#b4179c',
    950: '#000000',
  },
}
SCSS
$custom: #b4179c;
$custom-light: #cf6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#b4179c",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 156
  },
  "hsl": {
    "h": 309.172,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53285,
    "c": 0.22355,
    "h": 336.1
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#B4179C
secondary
#59CE6B
accent
#F45134
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B4179C

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

Preview Lab → · Contrast checker → · Palette generator →

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