#B31996#B31996

#B31996 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.9% C 0.218 H 337.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B31996
RGBrgb(179, 25, 150)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 86%, 70%)
CMYKcmyk(0%, 86%, 16.2%, 29.8%)
CIE-LABlab(41.97, 68.08, -30.14)
CIE-LCHlch(41.97, 74.45, 336.12°)
OKLaboklab(52.89% 0.202 -0.082)
OKLCHoklch(52.89% 0.218 337.9)
XYZxyz(24.4437, 12.4835, 29.9705)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31996 #19B336
analogous
#8319B3 #B31996 #B31949
triadic
#B31996 #96B319 #1996B3
tetradic
#B31996 #B38319 #19B336 #1949B3
square
#B31996 #B38319 #19B336 #1949B3
split-complementary
#B31996 #49B319 #19B383
monochromatic
#480A3C #7D1269 #B31996 #E128BE #E85ECE

Accessibility & contrast

On white

6.01
#B31996 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B31996 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31996
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31996#FFFFFF#000000##FFFFFF
##B319961.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225499
Deuteranopia (green-blind)
#5B6B93
Tritanopia (blue-blind)
#BD255A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31996;
/* rgb */ color: rgb(179, 25, 150);
/* oklch */ color: oklch(52.9% 0.218 337.9);
Tailwind
colors: {
  custom: {
    50: '#ce6db5',
    500: '#b31996',
    950: '#000000',
  },
}
SCSS
$custom: #b31996;
$custom-light: #ce6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31996",
  "rgb": {
    "r": 179,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 311.299,
    "s": 75.49,
    "l": 40
  },
  "oklch": {
    "l": 0.52894,
    "c": 0.21801,
    "h": 337.9
  },
  "luminance": 0.12481
}

Semantic roles & 50–950 ramp

primary
#B31996
secondary
#5BCC71
accent
#F25936
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31996

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

Preview Lab → · Contrast checker → · Palette generator →

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