#B31998#B31998

#B31998 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 53.0% C 0.219 H 337.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B31998
RGBrgb(179, 25, 152)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 86%, 70%)
CMYKcmyk(0%, 86%, 15.1%, 29.8%)
CIE-LABlab(42.07, 68.35, -31.20)
CIE-LCHlch(42.07, 75.13, 335.47°)
OKLaboklab(53% 0.2021 -0.0851)
OKLCHoklch(53% 0.219 337.2)
XYZxyz(24.6061, 12.5484, 30.8259)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31998 #19B334
analogous
#8119B3 #B31998 #B3194B
triadic
#B31998 #98B319 #1998B3
tetradic
#B31998 #B38119 #19B334 #194BB3
square
#B31998 #B38119 #19B334 #194BB3
split-complementary
#B31998 #4BB319 #19B381
monochromatic
#480A3D #7D126A #B31998 #E128C1 #E85ED0

Accessibility & contrast

On white

5.98
#B31998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B31998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31998
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31998#FFFFFF#000000##FFFFFF
##B319981.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#BD275B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31998;
/* rgb */ color: rgb(179, 25, 152);
/* oklch */ color: oklch(53.0% 0.219 337.2);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31998',
    950: '#000000',
  },
}
SCSS
$custom: #b31998;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31998",
  "rgb": {
    "r": 179,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 310.519,
    "s": 75.49,
    "l": 40
  },
  "oklch": {
    "l": 0.52998,
    "c": 0.21927,
    "h": 337.2
  },
  "luminance": 0.12546
}

Semantic roles & 50–950 ramp

primary
#B31998
secondary
#5BCC6F
accent
#F25736
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31998

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

Preview Lab → · Contrast checker → · Palette generator →

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