#B4159D#B4159D

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

Color values

HEX#B4159D
RGBrgb(180, 21, 157)
HSLhsl(309, 79%, 39%)
HSVhsv(309, 88%, 71%)
CMYKcmyk(0%, 88.3%, 12.8%, 29.4%)
CIE-LABlab(42.27, 69.94, -33.89)
CIE-LCHlch(42.27, 77.72, 334.15°)
OKLaboklab(53.26% 0.2054 -0.0928)
OKLCHoklch(53.26% 0.225 335.7)
XYZxyz(25.1768, 12.6764, 33.0126)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4159D #15B42C
analogous
#7B15B4 #B4159D #B4154E
triadic
#B4159D #9DB415 #159DB4
tetradic
#B4159D #B47B15 #15B42C #154EB4
square
#B4159D #B47B15 #15B42C #154EB4
split-complementary
#B4159D #4EB415 #15B47B
monochromatic
#46083D #7D0F6D #B4159D #E521C9 #EC58D6

Accessibility & contrast

On white

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

On black

3.53
#B4159D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B4159D#FFFFFF#000000##FFFFFF
##B4159D1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1755A0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#BE285D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4159d;
/* rgb */ color: rgb(180, 21, 157);
/* oklch */ color: oklch(53.3% 0.225 335.7);
Tailwind
colors: {
  custom: {
    50: '#cf6dba',
    500: '#b4159d',
    950: '#000000',
  },
}
SCSS
$custom: #b4159d;
$custom-light: #cf6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#b4159d",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 157
  },
  "hsl": {
    "h": 308.679,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.22534,
    "h": 335.7
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#B4159D
secondary
#56CF68
accent
#F64E32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B4159D

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

Preview Lab → · Contrast checker → · Palette generator →

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