#B31F5A#B31F5A

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

Color values

HEX#B31F5A
RGBrgb(179, 31, 90)
HSLhsl(336, 70%, 41%)
HSVhsv(336, 83%, 70%)
CMYKcmyk(0%, 82.7%, 49.7%, 29.8%)
CIE-LABlab(40.09, 60.16, 4.27)
CIE-LCHlch(40.09, 60.31, 4.06°)
OKLaboklab(50.77% 0.1845 0.0115)
OKLCHoklch(50.77% 0.185 3.6)
XYZxyz(20.9277, 11.3048, 10.7509)
Luminance0.1130 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F5A #1FB378
analogous
#B31FA4 #B31F5A #B32E1F
triadic
#B31F5A #5AB31F #1F5AB3
tetradic
#B31F5A #A4B31F #1FB378 #2E1FB3
square
#B31F5A #A4B31F #1FB378 #2E1FB3
split-complementary
#B31F5A #1FB32E #1FA4B3
monochromatic
#4B0D26 #7F1640 #B31F5A #DC3377 #E5689A

Accessibility & contrast

On white

6.44
#B31F5A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31F5A
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F5A#FFFFFF#000000##FFFFFF
##B31F5A1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474C5B
Deuteranopia (green-blind)
#6D6957
Tritanopia (blue-blind)
#C3003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31f5a;
/* rgb */ color: rgb(179, 31, 90);
/* oklch */ color: oklch(50.8% 0.185 3.6);
Tailwind
colors: {
  custom: {
    50: '#d06d88',
    500: '#b31f5a',
    950: '#000000',
  },
}
SCSS
$custom: #b31f5a;
$custom-light: #d06d88;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f5a",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 336.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50767,
    "c": 0.18486,
    "h": 3.6
  },
  "luminance": 0.11302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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