#B31B5B#B31B5B

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

Color values

HEX#B31B5B
RGBrgb(179, 27, 91)
HSLhsl(335, 74%, 40%)
HSVhsv(335, 85%, 70%)
CMYKcmyk(0%, 84.9%, 49.2%, 29.8%)
CIE-LABlab(39.79, 61.18, 3.20)
CIE-LCHlch(39.79, 61.26, 3.00°)
OKLaboklab(50.56% 0.1879 0.0088)
OKLCHoklch(50.56% 0.188 2.7)
XYZxyz(20.8725, 11.1259, 10.9439)
Luminance0.1112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B5B #1BB373
analogous
#B31BA7 #B31B5B #B3271B
triadic
#B31B5B #5BB31B #1B5BB3
tetradic
#B31B5B #A7B31B #1BB373 #271BB3
square
#B31B5B #A7B31B #1BB373 #271BB3
split-complementary
#B31B5B #1BB327 #1BA7B3
monochromatic
#490B25 #7E1340 #B31B5B #DF2C77 #E7619A

Accessibility & contrast

On white

6.51
#B31B5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#B31B5B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B5B
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B5B#FFFFFF#000000##FFFFFF
##B31B5B1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31b5b;
/* rgb */ color: rgb(179, 27, 91);
/* oklch */ color: oklch(50.6% 0.188 2.7);
Tailwind
colors: {
  custom: {
    50: '#d06b89',
    500: '#b31b5b',
    950: '#000000',
  },
}
SCSS
$custom: #b31b5b;
$custom-light: #d06b89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b5b",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 334.737,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50559,
    "c": 0.18808,
    "h": 2.7
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#B31B5B
secondary
#5ECC9E
accent
#F0A337
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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