#B3159E#B3159E

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

Color values

HEX#B3159E
RGBrgb(179, 21, 158)
HSLhsl(308, 79%, 39%)
HSVhsv(308, 88%, 70%)
CMYKcmyk(0%, 88.3%, 11.7%, 29.8%)
CIE-LABlab(42.14, 69.88, -34.71)
CIE-LCHlch(42.14, 78.03, 333.59°)
OKLaboklab(53.15% 0.2045 -0.0951)
OKLCHoklch(53.15% 0.226 335)
XYZxyz(25.0305, 12.5911, 33.4532)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3159E #15B32A
analogous
#7915B3 #B3159E #B3154F
triadic
#B3159E #9EB315 #159EB3
tetradic
#B3159E #B37915 #15B32A #154FB3
square
#B3159E #B37915 #15B32A #154FB3
split-complementary
#B3159E #4FB315 #15B379
monochromatic
#45083D #7C0F6E #B3159E #E520CB #EB57D8

Accessibility & contrast

On white

5.97
#B3159E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B3159E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B3159E
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3159E#FFFFFF#000000##FFFFFF
##B3159E1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1355A1
Deuteranopia (green-blind)
#566B9B
Tritanopia (blue-blind)
#BC295E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b3159e;
/* rgb */ color: rgb(179, 21, 158);
/* oklch */ color: oklch(53.1% 0.226 335.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbb',
    500: '#b3159e',
    950: '#000000',
  },
}
SCSS
$custom: #b3159e;
$custom-light: #ce6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#b3159e",
  "rgb": {
    "r": 179,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 307.975,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53146,
    "c": 0.22552,
    "h": 335
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B3159E

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

Preview Lab → · Contrast checker → · Palette generator →

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