#B31C94#B31C94

#B31C94 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.9% C 0.215 H 338.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B31C94
RGBrgb(179, 28, 148)
HSLhsl(312, 73%, 41%)
HSVhsv(312, 84%, 70%)
CMYKcmyk(0%, 84.4%, 17.3%, 29.8%)
CIE-LABlab(42.08, 67.20, -28.76)
CIE-LCHlch(42.08, 73.10, 336.83°)
OKLaboklab(52.94% 0.2 -0.0781)
OKLCHoklch(52.94% 0.215 338.7)
XYZxyz(24.3516, 12.5548, 29.1521)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C94 #1CB33B
analogous
#861CB3 #B31C94 #B31C48
triadic
#B31C94 #94B31C #1C94B3
tetradic
#B31C94 #B3861C #1CB33B #1C48B3
square
#B31C94 #B3861C #1CB33B #1C48B3
split-complementary
#B31C94 #48B31C #1CB386
monochromatic
#490B3C #7E1468 #B31C94 #DE2EBA #E763CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31C94#FFFFFF#000000##FFFFFF
##B31C941.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)
#275597
Deuteranopia (green-blind)
#5C6B91
Tritanopia (blue-blind)
#BE2659
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31c94;
/* rgb */ color: rgb(179, 28, 148);
/* oklch */ color: oklch(52.9% 0.215 338.7);
Tailwind
colors: {
  custom: {
    50: '#ce6eb3',
    500: '#b31c94',
    950: '#000000',
  },
}
SCSS
$custom: #b31c94;
$custom-light: #ce6eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c94",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 312.318,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.2147,
    "h": 338.7
  },
  "luminance": 0.12552
}

Semantic roles & 50–950 ramp

primary
#B31C94
secondary
#5FCB76
accent
#F05E38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C94

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

Preview Lab → · Contrast checker → · Palette generator →

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