#B31C5B#B31C5B

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

Color values

HEX#B31C5B
RGBrgb(179, 28, 91)
HSLhsl(335, 73%, 41%)
HSVhsv(335, 84%, 70%)
CMYKcmyk(0%, 84.4%, 49.2%, 29.8%)
CIE-LABlab(39.87, 60.95, 3.32)
CIE-LCHlch(39.87, 61.04, 3.11°)
OKLaboklab(50.62% 0.1872 0.0091)
OKLCHoklch(50.62% 0.187 2.8)
XYZxyz(20.8958, 11.1725, 10.9517)
Luminance0.1117 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C5B #1CB374
analogous
#B31CA6 #B31C5B #B3281C
triadic
#B31C5B #5BB31C #1C5BB3
tetradic
#B31C5B #A6B31C #1CB374 #281CB3
square
#B31C5B #A6B31C #1CB374 #281CB3
split-complementary
#B31C5B #1CB328 #1CA6B3
monochromatic
#490B25 #7E1440 #B31C5B #DE2E77 #E7639A

Accessibility & contrast

On white

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

On black

3.23
#B31C5B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B31C5B#FFFFFF#000000##FFFFFF
##B31C5B1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31c5b;
/* rgb */ color: rgb(179, 28, 91);
/* oklch */ color: oklch(50.6% 0.187 2.8);
Tailwind
colors: {
  custom: {
    50: '#d06c89',
    500: '#b31c5b',
    950: '#000000',
  },
}
SCSS
$custom: #b31c5b;
$custom-light: #d06c89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c5b",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 334.967,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50616,
    "c": 0.18737,
    "h": 2.8
  },
  "luminance": 0.1117
}

Semantic roles & 50–950 ramp

primary
#B31C5B
secondary
#5FCB9E
accent
#F0A338
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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