#B31C96#B31C96

#B31C96 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.0% C 0.216 H 337.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B31C96
RGBrgb(179, 28, 150)
HSLhsl(312, 73%, 41%)
HSVhsv(312, 84%, 70%)
CMYKcmyk(0%, 84.4%, 16.2%, 29.8%)
CIE-LABlab(42.18, 67.47, -29.82)
CIE-LCHlch(42.18, 73.76, 336.16°)
OKLaboklab(53.04% 0.2002 -0.0811)
OKLCHoklch(53.04% 0.216 337.9)
XYZxyz(24.5113, 12.6187, 29.9930)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C96 #1CB339
analogous
#841CB3 #B31C96 #B31C4A
triadic
#B31C96 #96B31C #1C96B3
tetradic
#B31C96 #B3841C #1CB339 #1C4AB3
square
#B31C96 #B3841C #1CB339 #1C4AB3
split-complementary
#B31C96 #4AB31C #1CB384
monochromatic
#490B3D #7E146A #B31C96 #DE2EBC #E763CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31C96#FFFFFF#000000##FFFFFF
##B31C961.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)
#255599
Deuteranopia (green-blind)
#5C6C93
Tritanopia (blue-blind)
#BD275A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c96;
/* rgb */ color: rgb(179, 28, 150);
/* oklch */ color: oklch(53.0% 0.216 337.9);
Tailwind
colors: {
  custom: {
    50: '#ce6eb5',
    500: '#b31c96',
    950: '#000000',
  },
}
SCSS
$custom: #b31c96;
$custom-light: #ce6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c96",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 311.523,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53043,
    "c": 0.21596,
    "h": 337.9
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#B31C96
secondary
#5FCB74
accent
#F05B38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C96

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

Preview Lab → · Contrast checker → · Palette generator →

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