#B4179B#B4179B

#B4179B is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.223 H 336.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B4179B
RGBrgb(180, 23, 155)
HSLhsl(310, 77%, 40%)
HSVhsv(310, 87%, 71%)
CMYKcmyk(0%, 87.2%, 13.9%, 29.4%)
CIE-LABlab(42.28, 69.33, -32.67)
CIE-LCHlch(42.28, 76.64, 334.77°)
OKLaboklab(53.23% 0.2043 -0.0892)
OKLCHoklch(53.23% 0.223 336.4)
XYZxyz(25.0457, 12.6851, 32.1334)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4179B #17B430
analogous
#7E17B4 #B4179B #B4174D
triadic
#B4179B #9BB417 #179BB4
tetradic
#B4179B #B47E17 #17B430 #174DB4
square
#B4179B #B47E17 #17B430 #174DB4
split-complementary
#B4179B #4DB417 #17B47E
monochromatic
#47093E #7E106C #B4179B #E325C5 #EA5BD3

Accessibility & contrast

On white

5.94
#B4179B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B4179B
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4179B#FFFFFF#000000##FFFFFF
##B4179B1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C559E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#BE275C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4179b;
/* rgb */ color: rgb(180, 23, 155);
/* oklch */ color: oklch(53.2% 0.223 336.4);
Tailwind
colors: {
  custom: {
    50: '#cf6db9',
    500: '#b4179b',
    950: '#000000',
  },
}
SCSS
$custom: #b4179b;
$custom-light: #cf6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#b4179b",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 155
  },
  "hsl": {
    "h": 309.554,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53232,
    "c": 0.22291,
    "h": 336.4
  },
  "luminance": 0.12683
}

Semantic roles & 50–950 ramp

primary
#B4179B
secondary
#59CE6C
accent
#F45234
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B4179B

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

Preview Lab → · Contrast checker → · Palette generator →

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