#B3159D#B3159D

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

Color values

HEX#B3159D
RGBrgb(179, 21, 157)
HSLhsl(308, 79%, 39%)
HSVhsv(308, 88%, 70%)
CMYKcmyk(0%, 88.3%, 12.3%, 29.8%)
CIE-LABlab(42.09, 69.75, -34.19)
CIE-LCHlch(42.09, 77.68, 333.88°)
OKLaboklab(53.09% 0.2045 -0.0937)
OKLCHoklch(53.09% 0.225 335.4)
XYZxyz(24.9448, 12.5568, 33.0017)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3159D #15B32B
analogous
#7A15B3 #B3159D #B3154E
triadic
#B3159D #9DB315 #159DB3
tetradic
#B3159D #B37A15 #15B32B #154EB3
square
#B3159D #B37A15 #15B32B #154EB3
split-complementary
#B3159D #4EB315 #15B37A
monochromatic
#45083D #7C0F6D #B3159D #E520CA #EB57D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3159D#FFFFFF#000000##FFFFFF
##B3159D1.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)
#1555A0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#BC285D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b3159d;
/* rgb */ color: rgb(179, 21, 157);
/* oklch */ color: oklch(53.1% 0.225 335.4);
Tailwind
colors: {
  custom: {
    50: '#ce6cba',
    500: '#b3159d',
    950: '#000000',
  },
}
SCSS
$custom: #b3159d;
$custom-light: #ce6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#b3159d",
  "rgb": {
    "r": 179,
    "g": 21,
    "b": 157
  },
  "hsl": {
    "h": 308.354,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53091,
    "c": 0.22488,
    "h": 335.4
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#B3159D
secondary
#56CE66
accent
#F54E32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B3159D

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

Preview Lab → · Contrast checker → · Palette generator →

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