#B31C95#B31C95

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

Color values

HEX#B31C95
RGBrgb(179, 28, 149)
HSLhsl(312, 73%, 41%)
HSVhsv(312, 84%, 70%)
CMYKcmyk(0%, 84.4%, 16.8%, 29.8%)
CIE-LABlab(42.13, 67.33, -29.29)
CIE-LCHlch(42.13, 73.43, 336.49°)
OKLaboklab(52.99% 0.2001 -0.0796)
OKLCHoklch(52.99% 0.215 338.3)
XYZxyz(24.4311, 12.5866, 29.5708)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C95 #1CB33A
analogous
#861CB3 #B31C95 #B31C49
triadic
#B31C95 #95B31C #1C95B3
tetradic
#B31C95 #B3861C #1CB33A #1C49B3
square
#B31C95 #B3861C #1CB33A #1C49B3
split-complementary
#B31C95 #49B31C #1CB386
monochromatic
#490B3D #7E1469 #B31C95 #DE2EBB #E763CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31C95#FFFFFF#000000##FFFFFF
##B31C951.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)
#265598
Deuteranopia (green-blind)
#5C6B92
Tritanopia (blue-blind)
#BD265A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31c95;
/* rgb */ color: rgb(179, 28, 149);
/* oklch */ color: oklch(53.0% 0.215 338.3);
Tailwind
colors: {
  custom: {
    50: '#ce6eb4',
    500: '#b31c95',
    950: '#000000',
  },
}
SCSS
$custom: #b31c95;
$custom-light: #ce6eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c95",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 311.921,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52992,
    "c": 0.21533,
    "h": 338.3
  },
  "luminance": 0.12584
}

Semantic roles & 50–950 ramp

primary
#B31C95
secondary
#5FCB75
accent
#F05D38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C95

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

Preview Lab → · Contrast checker → · Palette generator →

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