#B31B58#B31B58

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

Color values

HEX#B31B58
RGBrgb(179, 27, 88)
HSLhsl(336, 74%, 40%)
HSVhsv(336, 85%, 70%)
CMYKcmyk(0%, 84.9%, 50.8%, 29.8%)
CIE-LABlab(39.71, 60.93, 4.99)
CIE-LCHlch(39.71, 61.14, 4.68°)
OKLaboklab(50.47% 0.1868 0.0133)
OKLCHoklch(50.47% 0.187 4.1)
XYZxyz(20.7457, 11.0751, 10.2759)
Luminance0.1107 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B58 #1BB376
analogous
#B31BA4 #B31B58 #B32A1B
triadic
#B31B58 #58B31B #1B58B3
tetradic
#B31B58 #A4B31B #1BB376 #2A1BB3
square
#B31B58 #A4B31B #1BB376 #2A1BB3
split-complementary
#B31B58 #1BB32A #1BA4B3
monochromatic
#490B24 #7E133E #B31B58 #DF2C74 #E76197

Accessibility & contrast

On white

6.53
#B31B58 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31B58
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B58#FFFFFF#000000##FFFFFF
##B31B581.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454B59
Deuteranopia (green-blind)
#6D6854
Tritanopia (blue-blind)
#C30038
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31b58;
/* rgb */ color: rgb(179, 27, 88);
/* oklch */ color: oklch(50.5% 0.187 4.1);
Tailwind
colors: {
  custom: {
    50: '#d06b86',
    500: '#b31b58',
    950: '#000000',
  },
}
SCSS
$custom: #b31b58;
$custom-light: #d06b86;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b58",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 335.921,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50469,
    "c": 0.18728,
    "h": 4.1
  },
  "luminance": 0.11072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31B58

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

Preview Lab → · Contrast checker → · Palette generator →

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