#B4159F#B4159F

#B4159F is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.4% C 0.227 H 335.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B4159F
RGBrgb(180, 21, 159)
HSLhsl(308, 79%, 39%)
HSVhsv(308, 88%, 71%)
CMYKcmyk(0%, 88.3%, 11.7%, 29.4%)
CIE-LABlab(42.38, 70.22, -34.93)
CIE-LCHlch(42.38, 78.43, 333.55°)
OKLaboklab(53.36% 0.2054 -0.0957)
OKLCHoklch(53.36% 0.227 335)
XYZxyz(25.3490, 12.7453, 33.9192)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4159F #15B42A
analogous
#7A15B4 #B4159F #B4154F
triadic
#B4159F #9FB415 #159FB4
tetradic
#B4159F #B47A15 #15B42A #154FB4
square
#B4159F #B47A15 #15B42A #154FB4
split-complementary
#B4159F #4FB415 #15B47A
monochromatic
#46083E #7D0F6F #B4159F #E521CB #EC58D8

Accessibility & contrast

On white

5.92
#B4159F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B4159F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4159F
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4159F#FFFFFF#000000##FFFFFF
##B4159F1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1356A2
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#BD295E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4159f;
/* rgb */ color: rgb(180, 21, 159);
/* oklch */ color: oklch(53.4% 0.227 335.0);
Tailwind
colors: {
  custom: {
    50: '#cf6dbc',
    500: '#b4159f',
    950: '#000000',
  },
}
SCSS
$custom: #b4159f;
$custom-light: #cf6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b4159f",
  "rgb": {
    "r": 180,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 307.925,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53365,
    "c": 0.22663,
    "h": 335
  },
  "luminance": 0.12743
}

Semantic roles & 50–950 ramp

primary
#B4159F
secondary
#56CF66
accent
#F64C32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B4159F

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

Preview Lab → · Contrast checker → · Palette generator →

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