#B31F5B#B31F5B

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

Color values

HEX#B31F5B
RGBrgb(179, 31, 91)
HSLhsl(336, 70%, 41%)
HSVhsv(336, 83%, 70%)
CMYKcmyk(0%, 82.7%, 49.2%, 29.8%)
CIE-LABlab(40.12, 60.24, 3.67)
CIE-LCHlch(40.12, 60.36, 3.49°)
OKLaboklab(50.8% 0.1848 0.01)
OKLCHoklch(50.8% 0.185 3.1)
XYZxyz(20.9706, 11.3220, 10.9766)
Luminance0.1132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F5B #1FB377
analogous
#B31FA5 #B31F5B #B32D1F
triadic
#B31F5B #5BB31F #1F5BB3
tetradic
#B31F5B #A5B31F #1FB377 #2D1FB3
square
#B31F5B #A5B31F #1FB377 #2D1FB3
split-complementary
#B31F5B #1FB32D #1FA5B3
monochromatic
#4B0D26 #7F1640 #B31F5B #DC3378 #E5689A

Accessibility & contrast

On white

6.43
#B31F5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31F5B
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F5B#FFFFFF#000000##FFFFFF
##B31F5B1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464C5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#C3003B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31f5b;
/* rgb */ color: rgb(179, 31, 91);
/* oklch */ color: oklch(50.8% 0.185 3.1);
Tailwind
colors: {
  custom: {
    50: '#d06d89',
    500: '#b31f5b',
    950: '#000000',
  },
}
SCSS
$custom: #b31f5b;
$custom-light: #d06d89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f5b",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 335.676,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50797,
    "c": 0.18512,
    "h": 3.1
  },
  "luminance": 0.11319
}

Semantic roles & 50–950 ramp

primary
#B31F5B
secondary
#64CAA1
accent
#EDA53B
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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