#B31994#B31994

#B31994 is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.8% C 0.217 H 338.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B31994
RGBrgb(179, 25, 148)
HSLhsl(312, 75%, 40%)
HSVhsv(312, 86%, 70%)
CMYKcmyk(0%, 86%, 17.3%, 29.8%)
CIE-LABlab(41.88, 67.81, -29.09)
CIE-LCHlch(41.88, 73.78, 336.78°)
OKLaboklab(52.79% 0.2018 -0.079)
OKLCHoklch(52.79% 0.217 338.6)
XYZxyz(24.2840, 12.4196, 29.1296)
Luminance0.1242 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31994 #19B338
analogous
#8519B3 #B31994 #B31947
triadic
#B31994 #94B319 #1994B3
tetradic
#B31994 #B38519 #19B338 #1947B3
square
#B31994 #B38519 #19B338 #1947B3
split-complementary
#B31994 #47B319 #19B385
monochromatic
#480A3B #7D1268 #B31994 #E128BC #E85ECD

Accessibility & contrast

On white

6.03
#B31994 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#B31994 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31994
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31994#FFFFFF#000000##FFFFFF
##B319941.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255497
Deuteranopia (green-blind)
#5C6B91
Tritanopia (blue-blind)
#BE2459
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31994;
/* rgb */ color: rgb(179, 25, 148);
/* oklch */ color: oklch(52.8% 0.217 338.6);
Tailwind
colors: {
  custom: {
    50: '#ce6db4',
    500: '#b31994',
    950: '#000000',
  },
}
SCSS
$custom: #b31994;
$custom-light: #ce6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31994",
  "rgb": {
    "r": 179,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 312.078,
    "s": 75.49,
    "l": 40
  },
  "oklch": {
    "l": 0.52791,
    "c": 0.21674,
    "h": 338.6
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#B31994
secondary
#5BCC72
accent
#F25C36
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31994

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

Preview Lab → · Contrast checker → · Palette generator →

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