#B4159B#B4159B

#B4159B is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.1% C 0.224 H 336.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B4159B
RGBrgb(180, 21, 155)
HSLhsl(309, 79%, 39%)
HSVhsv(309, 88%, 71%)
CMYKcmyk(0%, 88.3%, 13.9%, 29.4%)
CIE-LABlab(42.17, 69.67, -32.85)
CIE-LCHlch(42.17, 77.03, 334.76°)
OKLaboklab(53.15% 0.2053 -0.0898)
OKLCHoklch(53.15% 0.224 336.4)
XYZxyz(25.0075, 12.6087, 32.1207)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4159B #15B42E
analogous
#7E15B4 #B4159B #B4154C
triadic
#B4159B #9BB415 #159BB4
tetradic
#B4159B #B47E15 #15B42E #154CB4
square
#B4159B #B47E15 #15B42E #154CB4
split-complementary
#B4159B #4CB415 #15B47E
monochromatic
#46083D #7D0F6C #B4159B #E521C6 #EC58D4

Accessibility & contrast

On white

5.96
#B4159B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B4159B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4159B
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4159B#FFFFFF#000000##FFFFFF
##B4159B1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A559E
Deuteranopia (green-blind)
#596B98
Tritanopia (blue-blind)
#BE265C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b4159b;
/* rgb */ color: rgb(180, 21, 155);
/* oklch */ color: oklch(53.1% 0.224 336.4);
Tailwind
colors: {
  custom: {
    50: '#cf6db9',
    500: '#b4159b',
    950: '#000000',
  },
}
SCSS
$custom: #b4159b;
$custom-light: #cf6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#b4159b",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 155
  },
  "hsl": {
    "h": 309.434,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53148,
    "c": 0.22406,
    "h": 336.4
  },
  "luminance": 0.12606
}

Semantic roles & 50–950 ramp

primary
#B4159B
secondary
#56CF69
accent
#F65132
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B4159B

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

Preview Lab → · Contrast checker → · Palette generator →

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