#B31C97#B31C97

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

Color values

HEX#B31C97
RGBrgb(179, 28, 151)
HSLhsl(311, 73%, 41%)
HSVhsv(311, 84%, 70%)
CMYKcmyk(0%, 84.4%, 15.6%, 29.8%)
CIE-LABlab(42.23, 67.61, -30.34)
CIE-LCHlch(42.23, 74.10, 335.83°)
OKLaboklab(53.1% 0.2002 -0.0826)
OKLCHoklch(53.1% 0.217 337.6)
XYZxyz(24.5922, 12.6510, 30.4189)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C97 #1CB338
analogous
#831CB3 #B31C97 #B31C4B
triadic
#B31C97 #97B31C #1C97B3
tetradic
#B31C97 #B3831C #1CB338 #1C4BB3
square
#B31C97 #B3831C #1CB338 #1C4BB3
split-complementary
#B31C97 #4BB31C #1CB383
monochromatic
#490B3E #7E146A #B31C97 #DE2EBE #E763CE

Accessibility & contrast

On white

5.95
#B31C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B31C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C97
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C97#FFFFFF#000000##FFFFFF
##B31C971.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#5B6C94
Tritanopia (blue-blind)
#BD285B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c97;
/* rgb */ color: rgb(179, 28, 151);
/* oklch */ color: oklch(53.1% 0.217 337.6);
Tailwind
colors: {
  custom: {
    50: '#ce6eb6',
    500: '#b31c97',
    950: '#000000',
  },
}
SCSS
$custom: #b31c97;
$custom-light: #ce6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c97",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 311.126,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.2166,
    "h": 337.6
  },
  "luminance": 0.12649
}

Semantic roles & 50–950 ramp

primary
#B31C97
secondary
#5FCB73
accent
#F05A38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C97

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

Preview Lab → · Contrast checker → · Palette generator →

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