#B31C5C#B31C5C

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

Color values

HEX#B31C5C
RGBrgb(179, 28, 92)
HSLhsl(335, 73%, 41%)
HSVhsv(335, 84%, 70%)
CMYKcmyk(0%, 84.4%, 48.6%, 29.8%)
CIE-LABlab(39.90, 61.04, 2.72)
CIE-LCHlch(39.90, 61.10, 2.55°)
OKLaboklab(50.65% 0.1875 0.0076)
OKLCHoklch(50.65% 0.188 2.3)
XYZxyz(20.9393, 11.1899, 11.1804)
Luminance0.1119 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C5C #1CB373
analogous
#B31CA7 #B31C5C #B3281C
triadic
#B31C5C #5CB31C #1C5CB3
tetradic
#B31C5C #A7B31C #1CB373 #281CB3
square
#B31C5C #A7B31C #1CB373 #281CB3
split-complementary
#B31C5C #1CB328 #1CA7B3
monochromatic
#490B26 #7E1441 #B31C5C #DE2E79 #E7639B

Accessibility & contrast

On white

6.49
#B31C5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31C5C
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C5C#FFFFFF#000000##FFFFFF
##B31C5C1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454C5D
Deuteranopia (green-blind)
#6C6859
Tritanopia (blue-blind)
#C3003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31c5c;
/* rgb */ color: rgb(179, 28, 92);
/* oklch */ color: oklch(50.6% 0.188 2.3);
Tailwind
colors: {
  custom: {
    50: '#d06c89',
    500: '#b31c5c',
    950: '#000000',
  },
}
SCSS
$custom: #b31c5c;
$custom-light: #d06c89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c5c",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 92
  },
  "hsl": {
    "h": 334.57,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50646,
    "c": 0.18764,
    "h": 2.3
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#B31C5C
secondary
#5FCB9E
accent
#F0A238
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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