#B31F5D#B31F5D

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

Color values

HEX#B31F5D
RGBrgb(179, 31, 93)
HSLhsl(335, 70%, 41%)
HSVhsv(335, 83%, 70%)
CMYKcmyk(0%, 82.7%, 48%, 29.8%)
CIE-LABlab(40.18, 60.41, 2.49)
CIE-LCHlch(40.18, 60.47, 2.36°)
OKLaboklab(50.86% 0.1856 0.007)
OKLCHoklch(50.86% 0.186 2.2)
XYZxyz(21.0580, 11.3569, 11.4371)
Luminance0.1135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F5D #1FB375
analogous
#B31FA7 #B31F5D #B32B1F
triadic
#B31F5D #5DB31F #1F5DB3
tetradic
#B31F5D #A7B31F #1FB375 #2B1FB3
square
#B31F5D #A7B31F #1FB375 #2B1FB3
split-complementary
#B31F5D #1FB32B #1FA7B3
monochromatic
#4B0D27 #7F1642 #B31F5D #DC337A #E5689C

Accessibility & contrast

On white

6.42
#B31F5D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#B31F5D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F5D
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F5D#FFFFFF#000000##FFFFFF
##B31F5D1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D5E
Deuteranopia (green-blind)
#6D695A
Tritanopia (blue-blind)
#C3003C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31f5d;
/* rgb */ color: rgb(179, 31, 93);
/* oklch */ color: oklch(50.9% 0.186 2.2);
Tailwind
colors: {
  custom: {
    50: '#d06d8a',
    500: '#b31f5d',
    950: '#000000',
  },
}
SCSS
$custom: #b31f5d;
$custom-light: #d06d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f5d",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 334.865,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50858,
    "c": 0.18568,
    "h": 2.2
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#B31F5D
secondary
#64CA9F
accent
#EDA23B
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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