#B4159E#B4159E

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

Color values

HEX#B4159E
RGBrgb(180, 21, 158)
HSLhsl(308, 79%, 39%)
HSVhsv(308, 88%, 71%)
CMYKcmyk(0%, 88.3%, 12.2%, 29.4%)
CIE-LABlab(42.32, 70.08, -34.41)
CIE-LCHlch(42.32, 78.07, 333.85°)
OKLaboklab(53.31% 0.2054 -0.0943)
OKLCHoklch(53.31% 0.226 335.3)
XYZxyz(25.2625, 12.7107, 33.4641)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4159E #15B42B
analogous
#7B15B4 #B4159E #B4154F
triadic
#B4159E #9EB415 #159EB4
tetradic
#B4159E #B47B15 #15B42B #154FB4
square
#B4159E #B47B15 #15B42B #154FB4
split-complementary
#B4159E #4FB415 #15B47B
monochromatic
#46083E #7D0F6E #B4159E #E521CA #EC58D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4159E#FFFFFF#000000##FFFFFF
##B4159E1.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)
#1556A1
Deuteranopia (green-blind)
#576C9B
Tritanopia (blue-blind)
#BD285E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4159e;
/* rgb */ color: rgb(180, 21, 158);
/* oklch */ color: oklch(53.3% 0.226 335.3);
Tailwind
colors: {
  custom: {
    50: '#cf6dbb',
    500: '#b4159e',
    950: '#000000',
  },
}
SCSS
$custom: #b4159e;
$custom-light: #cf6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#b4159e",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 308.302,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5331,
    "c": 0.22598,
    "h": 335.3
  },
  "luminance": 0.12708
}

Semantic roles & 50–950 ramp

primary
#B4159E
secondary
#56CF67
accent
#F64D32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B4159E

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

Preview Lab → · Contrast checker → · Palette generator →

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