#B31B5A#B31B5A

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

Color values

HEX#B31B5A
RGBrgb(179, 27, 90)
HSLhsl(335, 74%, 40%)
HSVhsv(335, 85%, 70%)
CMYKcmyk(0%, 84.9%, 49.7%, 29.8%)
CIE-LABlab(39.76, 61.09, 3.80)
CIE-LCHlch(39.76, 61.21, 3.56°)
OKLaboklab(50.53% 0.1875 0.0103)
OKLCHoklch(50.53% 0.188 3.1)
XYZxyz(20.8297, 11.1087, 10.7183)
Luminance0.1111 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B5A #1BB374
analogous
#B31BA6 #B31B5A #B3281B
triadic
#B31B5A #5AB31B #1B5AB3
tetradic
#B31B5A #A6B31B #1BB374 #281BB3
square
#B31B5A #A6B31B #1BB374 #281BB3
split-complementary
#B31B5A #1BB328 #1BA6B3
monochromatic
#490B25 #7E133F #B31B5A #DF2C76 #E76199

Accessibility & contrast

On white

6.52
#B31B5A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#B31B5A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B5A
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B5A#FFFFFF#000000##FFFFFF
##B31B5A1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454B5B
Deuteranopia (green-blind)
#6D6857
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31b5a;
/* rgb */ color: rgb(179, 27, 90);
/* oklch */ color: oklch(50.5% 0.188 3.1);
Tailwind
colors: {
  custom: {
    50: '#d06b88',
    500: '#b31b5a',
    950: '#000000',
  },
}
SCSS
$custom: #b31b5a;
$custom-light: #d06b88;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b5a",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 335.132,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50528,
    "c": 0.1878,
    "h": 3.1
  },
  "luminance": 0.11106
}

Semantic roles & 50–950 ramp

primary
#B31B5A
secondary
#5ECC9E
accent
#F0A437
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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