#B31B57#B31B57

#B31B57 is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.187 H 4.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#B31B57
RGBrgb(179, 27, 87)
HSLhsl(336, 74%, 40%)
HSVhsv(336, 85%, 70%)
CMYKcmyk(0%, 84.9%, 51.4%, 29.8%)
CIE-LABlab(39.68, 60.85, 5.59)
CIE-LCHlch(39.68, 61.11, 5.24°)
OKLaboklab(50.44% 0.1865 0.0148)
OKLCHoklch(50.44% 0.187 4.5)
XYZxyz(20.7046, 11.0587, 10.0593)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B57 #1BB377
analogous
#B31BA3 #B31B57 #B32B1B
triadic
#B31B57 #57B31B #1B57B3
tetradic
#B31B57 #A3B31B #1BB377 #2B1BB3
square
#B31B57 #A3B31B #1BB377 #2B1BB3
split-complementary
#B31B57 #1BB32B #1BA3B3
monochromatic
#490B23 #7E133D #B31B57 #DF2C73 #E76196

Accessibility & contrast

On white

6.54
#B31B57 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#B31B57 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B57
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B57#FFFFFF#000000##FFFFFF
##B31B571.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464B58
Deuteranopia (green-blind)
#6D6853
Tritanopia (blue-blind)
#C30037
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31b57;
/* rgb */ color: rgb(179, 27, 87);
/* oklch */ color: oklch(50.4% 0.187 4.5);
Tailwind
colors: {
  custom: {
    50: '#d06b86',
    500: '#b31b57',
    950: '#000000',
  },
}
SCSS
$custom: #b31b57;
$custom-light: #d06b86;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b57",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 336.316,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.18703,
    "h": 4.5
  },
  "luminance": 0.11056
}

Semantic roles & 50–950 ramp

primary
#B31B57
secondary
#5ECCA0
accent
#F0A737
background
#FDF6F8
surface
#FBECEF
border
#D4C7CA
text
#15080B
muted
#837A7C

Preview Lab

Preview with #B31B57

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

Preview Lab → · Contrast checker → · Palette generator →

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