#B31C5D#B31C5D

#B31C5D is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.7% C 0.188 H 1.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#B31C5D
RGBrgb(179, 28, 93)
HSLhsl(334, 73%, 41%)
HSVhsv(334, 84%, 70%)
CMYKcmyk(0%, 84.4%, 48%, 29.8%)
CIE-LABlab(39.93, 61.12, 2.13)
CIE-LCHlch(39.93, 61.16, 2.00°)
OKLaboklab(50.68% 0.1878 0.0061)
OKLCHoklch(50.68% 0.188 1.9)
XYZxyz(20.9833, 11.2075, 11.4121)
Luminance0.1120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C5D #1CB372
analogous
#B31CA8 #B31C5D #B3261C
triadic
#B31C5D #5DB31C #1C5DB3
tetradic
#B31C5D #A8B31C #1CB372 #261CB3
square
#B31C5D #A8B31C #1CB372 #261CB3
split-complementary
#B31C5D #1CB326 #1CA8B3
monochromatic
#490B26 #7E1442 #B31C5D #DE2E7A #E7639C

Accessibility & contrast

On white

6.48
#B31C5D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#B31C5D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C5D
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C5D#FFFFFF#000000##FFFFFF
##B31C5D1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444C5E
Deuteranopia (green-blind)
#6C685A
Tritanopia (blue-blind)
#C3003B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31c5d;
/* rgb */ color: rgb(179, 28, 93);
/* oklch */ color: oklch(50.7% 0.188 1.9);
Tailwind
colors: {
  custom: {
    50: '#d06c8a',
    500: '#b31c5d',
    950: '#000000',
  },
}
SCSS
$custom: #b31c5d;
$custom-light: #d06c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c5d",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 334.172,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50677,
    "c": 0.18794,
    "h": 1.9
  },
  "luminance": 0.11205
}

Semantic roles & 50–950 ramp

primary
#B31C5D
secondary
#5FCB9D
accent
#F0A138
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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