#B31D5F#B31D5F

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

Color values

HEX#B31D5F
RGBrgb(179, 29, 95)
HSLhsl(334, 72%, 41%)
HSVhsv(334, 84%, 70%)
CMYKcmyk(0%, 83.8%, 46.9%, 29.8%)
CIE-LABlab(40.07, 61.07, 1.06)
CIE-LCHlch(40.07, 61.08, 1.00°)
OKLaboklab(50.8% 0.1878 0.0034)
OKLCHoklch(50.8% 0.188 1)
XYZxyz(21.0971, 11.2916, 11.8928)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D5F #1DB371
analogous
#B31DAA #B31D5F #B3261D
triadic
#B31D5F #5FB31D #1D5FB3
tetradic
#B31D5F #AAB31D #1DB371 #261DB3
square
#B31D5F #AAB31D #1DB371 #261DB3
split-complementary
#B31D5F #1DB326 #1DAAB3
monochromatic
#4A0C27 #7E1443 #B31D5F #DD307C #E6649D

Accessibility & contrast

On white

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

On black

3.26
#B31D5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B31D5F#FFFFFF#000000##FFFFFF
##B31D5F1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31d5f;
/* rgb */ color: rgb(179, 29, 95);
/* oklch */ color: oklch(50.8% 0.188 1.0);
Tailwind
colors: {
  custom: {
    50: '#d06c8c',
    500: '#b31d5f',
    950: '#000000',
  },
}
SCSS
$custom: #b31d5f;
$custom-light: #d06c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d5f",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 333.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50799,
    "c": 0.18781,
    "h": 1
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#B31D5F
secondary
#61CB9C
accent
#EF9F39
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B31D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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