#B31D5E#B31D5E

#B31D5E is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.8% C 0.188 H 1.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#B31D5E
RGBrgb(179, 29, 94)
HSLhsl(334, 72%, 41%)
HSVhsv(334, 84%, 70%)
CMYKcmyk(0%, 83.8%, 47.5%, 29.8%)
CIE-LABlab(40.04, 60.98, 1.65)
CIE-LCHlch(40.04, 61.00, 1.55°)
OKLaboklab(50.77% 0.1874 0.0049)
OKLCHoklch(50.77% 0.188 1.5)
XYZxyz(21.0520, 11.2735, 11.6550)
Luminance0.1127 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D5E #1DB372
analogous
#B31DA9 #B31D5E #B3271D
triadic
#B31D5E #5EB31D #1D5EB3
tetradic
#B31D5E #A9B31D #1DB372 #271DB3
square
#B31D5E #A9B31D #1DB372 #271DB3
split-complementary
#B31D5E #1DB327 #1DA9B3
monochromatic
#4A0C27 #7E1442 #B31D5E #DD307B #E6649D

Accessibility & contrast

On white

6.45
#B31D5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#B31D5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D5E
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D5E#FFFFFF#000000##FFFFFF
##B31D5E1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444C5F
Deuteranopia (green-blind)
#6C685B
Tritanopia (blue-blind)
#C3003C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31d5e;
/* rgb */ color: rgb(179, 29, 94);
/* oklch */ color: oklch(50.8% 0.188 1.5);
Tailwind
colors: {
  custom: {
    50: '#d06c8b',
    500: '#b31d5e',
    950: '#000000',
  },
}
SCSS
$custom: #b31d5e;
$custom-light: #d06c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d5e",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 334,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50767,
    "c": 0.1875,
    "h": 1.5
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#B31D5E
secondary
#61CB9D
accent
#EFA039
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B31D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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