#B3159F#B3159F

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

Color values

HEX#B3159F
RGBrgb(179, 21, 159)
HSLhsl(308, 79%, 39%)
HSVhsv(308, 88%, 70%)
CMYKcmyk(0%, 88.3%, 11.2%, 29.8%)
CIE-LABlab(42.19, 70.02, -35.23)
CIE-LCHlch(42.19, 78.39, 333.29°)
OKLaboklab(53.2% 0.2045 -0.0966)
OKLCHoklch(53.2% 0.226 334.7)
XYZxyz(25.1169, 12.6256, 33.9084)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3159F #15B329
analogous
#7815B3 #B3159F #B31550
triadic
#B3159F #9FB315 #159FB3
tetradic
#B3159F #B37815 #15B329 #1550B3
square
#B3159F #B37815 #15B329 #1550B3
split-complementary
#B3159F #50B315 #15B378
monochromatic
#45083E #7C0F6E #B3159F #E520CC #EB57D9

Accessibility & contrast

On white

5.96
#B3159F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B3159F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3159F#FFFFFF#000000##FFFFFF
##B3159F1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1155A2
Deuteranopia (green-blind)
#566B9C
Tritanopia (blue-blind)
#BC2A5E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b3159f;
/* rgb */ color: rgb(179, 21, 159);
/* oklch */ color: oklch(53.2% 0.226 334.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dbc',
    500: '#b3159f',
    950: '#000000',
  },
}
SCSS
$custom: #b3159f;
$custom-light: #ce6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b3159f",
  "rgb": {
    "r": 179,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 307.595,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53201,
    "c": 0.22618,
    "h": 334.7
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

primary
#B3159F
secondary
#56CE65
accent
#F54B32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B3159F

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

Preview Lab → · Contrast checker → · Palette generator →

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