#B31F5F#B31F5F

#B31F5F is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.186 H 1.2°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#B31F5F
RGBrgb(179, 31, 95)
HSLhsl(334, 70%, 41%)
HSVhsv(334, 83%, 70%)
CMYKcmyk(0%, 82.7%, 46.9%, 29.8%)
CIE-LABlab(40.23, 60.59, 1.31)
CIE-LCHlch(40.23, 60.60, 1.24°)
OKLaboklab(50.92% 0.1862 0.004)
OKLCHoklch(50.92% 0.186 1.2)
XYZxyz(21.1477, 11.3928, 11.9097)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F5F #1FB373
analogous
#B31FA9 #B31F5F #B3291F
triadic
#B31F5F #5FB31F #1F5FB3
tetradic
#B31F5F #A9B31F #1FB373 #291FB3
square
#B31F5F #A9B31F #1FB373 #291FB3
split-complementary
#B31F5F #1FB329 #1FA9B3
monochromatic
#4B0D28 #7F1643 #B31F5F #DC337C #E5689E

Accessibility & contrast

On white

6.41
#B31F5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#B31F5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F5F
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F5F#FFFFFF#000000##FFFFFF
##B31F5F1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454D60
Deuteranopia (green-blind)
#6C695C
Tritanopia (blue-blind)
#C3003D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31f5f;
/* rgb */ color: rgb(179, 31, 95);
/* oklch */ color: oklch(50.9% 0.186 1.2);
Tailwind
colors: {
  custom: {
    50: '#d06d8c',
    500: '#b31f5f',
    950: '#000000',
  },
}
SCSS
$custom: #b31f5f;
$custom-light: #d06d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f5f",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 334.054,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50921,
    "c": 0.18627,
    "h": 1.2
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#B31F5F
secondary
#64CA9E
accent
#EDA03B
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B31F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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