#B31B5C#B31B5C

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

Color values

HEX#B31B5C
RGBrgb(179, 27, 92)
HSLhsl(334, 74%, 40%)
HSVhsv(334, 85%, 70%)
CMYKcmyk(0%, 84.9%, 48.6%, 29.8%)
CIE-LABlab(39.82, 61.26, 2.61)
CIE-LCHlch(39.82, 61.32, 2.44°)
OKLaboklab(50.59% 0.1882 0.0073)
OKLCHoklch(50.59% 0.188 2.2)
XYZxyz(20.9160, 11.1432, 11.1726)
Luminance0.1114 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B5C #1BB372
analogous
#B31BA8 #B31B5C #B3261B
triadic
#B31B5C #5CB31B #1B5CB3
tetradic
#B31B5C #A8B31B #1BB372 #261BB3
square
#B31B5C #A8B31B #1BB372 #261BB3
split-complementary
#B31B5C #1BB326 #1BA8B3
monochromatic
#490B25 #7E1341 #B31B5C #DF2C79 #E7619B

Accessibility & contrast

On white

6.51
#B31B5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#B31B5C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B5C
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B5C#FFFFFF#000000##FFFFFF
##B31B5C1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444B5D
Deuteranopia (green-blind)
#6C6859
Tritanopia (blue-blind)
#C3003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31b5c;
/* rgb */ color: rgb(179, 27, 92);
/* oklch */ color: oklch(50.6% 0.188 2.2);
Tailwind
colors: {
  custom: {
    50: '#d06b89',
    500: '#b31b5c',
    950: '#000000',
  },
}
SCSS
$custom: #b31b5c;
$custom-light: #d06b89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b5c",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 334.342,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50589,
    "c": 0.18836,
    "h": 2.2
  },
  "luminance": 0.1114
}

Semantic roles & 50–950 ramp

primary
#B31B5C
secondary
#5ECC9D
accent
#F0A137
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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