#B4159A#B4159A

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

Color values

HEX#B4159A
RGBrgb(180, 21, 154)
HSLhsl(310, 79%, 39%)
HSVhsv(310, 88%, 71%)
CMYKcmyk(0%, 88.3%, 14.4%, 29.4%)
CIE-LABlab(42.12, 69.53, -32.33)
CIE-LCHlch(42.12, 76.68, 335.07°)
OKLaboklab(53.1% 0.2053 -0.0883)
OKLCHoklch(53.1% 0.223 336.7)
XYZxyz(24.9238, 12.5752, 31.6802)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4159A #15B42F
analogous
#7E15B4 #B4159A #B4154B
triadic
#B4159A #9AB415 #159AB4
tetradic
#B4159A #B47E15 #15B42F #154BB4
square
#B4159A #B47E15 #15B42F #154BB4
split-complementary
#B4159A #4BB415 #15B47E
monochromatic
#46083C #7D0F6B #B4159A #E521C5 #EC58D3

Accessibility & contrast

On white

5.98
#B4159A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B4159A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4159A
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4159A#FFFFFF#000000##FFFFFF
##B4159A1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559D
Deuteranopia (green-blind)
#596B97
Tritanopia (blue-blind)
#BE255B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b4159a;
/* rgb */ color: rgb(180, 21, 154);
/* oklch */ color: oklch(53.1% 0.223 336.7);
Tailwind
colors: {
  custom: {
    50: '#cf6cb8',
    500: '#b4159a',
    950: '#000000',
  },
}
SCSS
$custom: #b4159a;
$custom-light: #cf6cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#b4159a",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 154
  },
  "hsl": {
    "h": 309.811,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.22342,
    "h": 336.7
  },
  "luminance": 0.12573
}

Semantic roles & 50–950 ramp

primary
#B4159A
secondary
#56CF6A
accent
#F65232
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B4159A

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

Preview Lab → · Contrast checker → · Palette generator →

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