#B31999#B31999

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

Color values

HEX#B31999
RGBrgb(179, 25, 153)
HSLhsl(310, 75%, 40%)
HSVhsv(310, 86%, 70%)
CMYKcmyk(0%, 86%, 14.5%, 29.8%)
CIE-LABlab(42.13, 68.48, -31.72)
CIE-LCHlch(42.13, 75.47, 335.15°)
OKLaboklab(53.05% 0.2022 -0.0866)
OKLCHoklch(53.05% 0.22 336.8)
XYZxyz(24.6883, 12.5813, 31.2590)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31999 #19B333
analogous
#8019B3 #B31999 #B3194C
triadic
#B31999 #99B319 #1999B3
tetradic
#B31999 #B38019 #19B333 #194CB3
square
#B31999 #B38019 #19B333 #194CB3
split-complementary
#B31999 #4CB319 #19B380
monochromatic
#480A3D #7D126B #B31999 #E128C2 #E85ED1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31999#FFFFFF#000000##FFFFFF
##B319991.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)
#1F559C
Deuteranopia (green-blind)
#5A6B96
Tritanopia (blue-blind)
#BD275B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31999;
/* rgb */ color: rgb(179, 25, 153);
/* oklch */ color: oklch(53.1% 0.220 336.8);
Tailwind
colors: {
  custom: {
    50: '#ce6db7',
    500: '#b31999',
    950: '#000000',
  },
}
SCSS
$custom: #b31999;
$custom-light: #ce6db7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31999",
  "rgb": {
    "r": 179,
    "g": 25,
    "b": 153
  },
  "hsl": {
    "h": 310.13,
    "s": 75.49,
    "l": 40
  },
  "oklch": {
    "l": 0.53051,
    "c": 0.21991,
    "h": 336.8
  },
  "luminance": 0.12579
}

Semantic roles & 50–950 ramp

primary
#B31999
secondary
#5BCC6E
accent
#F25636
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31999

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

Preview Lab → · Contrast checker → · Palette generator →

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