#B31C8F#B31C8F

#B31C8F is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.7% C 0.212 H 340.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#B31C8F
RGBrgb(179, 28, 143)
HSLhsl(314, 73%, 41%)
HSVhsv(314, 84%, 70%)
CMYKcmyk(0%, 84.4%, 20.1%, 29.8%)
CIE-LABlab(41.84, 66.54, -26.09)
CIE-LCHlch(41.84, 71.48, 338.59°)
OKLaboklab(52.69% 0.1995 -0.0705)
OKLCHoklch(52.69% 0.212 340.5)
XYZxyz(23.9644, 12.3999, 27.1127)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C8F #1CB340
analogous
#8C1CB3 #B31C8F #B31C43
triadic
#B31C8F #8FB31C #1C8FB3
tetradic
#B31C8F #B38C1C #1CB340 #1C43B3
square
#B31C8F #B38C1C #1CB340 #1C43B3
split-complementary
#B31C8F #43B31C #1CB38C
monochromatic
#490B3A #7E1465 #B31C8F #DE2EB4 #E763C7

Accessibility & contrast

On white

6.04
#B31C8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31C8F
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C8F#FFFFFF#000000##FFFFFF
##B31C8F1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5492
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#BE2256
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31c8f;
/* rgb */ color: rgb(179, 28, 143);
/* oklch */ color: oklch(52.7% 0.212 340.5);
Tailwind
colors: {
  custom: {
    50: '#ce6eb0',
    500: '#b31c8f',
    950: '#000000',
  },
}
SCSS
$custom: #b31c8f;
$custom-light: #ce6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c8f",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 314.305,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52691,
    "c": 0.21159,
    "h": 340.5
  },
  "luminance": 0.12397
}

Semantic roles & 50–950 ramp

primary
#B31C8F
secondary
#5FCB79
accent
#F06438
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B31C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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