#B31B5D#B31B5D

#B31B5D is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.189 H 1.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#B31B5D
RGBrgb(179, 27, 93)
HSLhsl(334, 74%, 40%)
HSVhsv(334, 85%, 70%)
CMYKcmyk(0%, 84.9%, 48%, 29.8%)
CIE-LABlab(39.85, 61.35, 2.02)
CIE-LCHlch(39.85, 61.38, 1.88°)
OKLaboklab(50.62% 0.1886 0.0058)
OKLCHoklch(50.62% 0.189 1.8)
XYZxyz(20.9600, 11.1608, 11.4044)
Luminance0.1116 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B5D #1BB371
analogous
#B31BA9 #B31B5D #B3251B
triadic
#B31B5D #5DB31B #1B5DB3
tetradic
#B31B5D #A9B31B #1BB371 #251BB3
square
#B31B5D #A9B31B #1BB371 #251BB3
split-complementary
#B31B5D #1BB325 #1BA9B3
monochromatic
#490B26 #7E1341 #B31B5D #DF2C7A #E7619B

Accessibility & contrast

On white

6.50
#B31B5D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31B5D
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B5D#FFFFFF#000000##FFFFFF
##B31B5D1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31b5d;
/* rgb */ color: rgb(179, 27, 93);
/* oklch */ color: oklch(50.6% 0.189 1.8);
Tailwind
colors: {
  custom: {
    50: '#d06b8a',
    500: '#b31b5d',
    950: '#000000',
  },
}
SCSS
$custom: #b31b5d;
$custom-light: #d06b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b5d",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 333.947,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5062,
    "c": 0.18865,
    "h": 1.8
  },
  "luminance": 0.11158
}

Semantic roles & 50–950 ramp

primary
#B31B5D
secondary
#5ECC9C
accent
#F0A037
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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