#B31B6D#B31B6D

#B31B6D is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.2% C 0.194 H 354.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#B31B6D
RGBrgb(179, 27, 109)
HSLhsl(328, 74%, 40%)
HSVhsv(328, 85%, 70%)
CMYKcmyk(0%, 84.9%, 39.1%, 29.8%)
CIE-LABlab(40.37, 62.83, -7.32)
CIE-LCHlch(40.37, 63.26, 353.36°)
OKLaboklab(51.17% 0.1935 -0.0185)
OKLCHoklch(51.17% 0.194 354.5)
XYZxyz(21.7442, 11.4746, 15.5348)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B6D #1BB361
analogous
#AD1BB3 #B31B6D #B31B21
triadic
#B31B6D #6DB31B #1B6DB3
tetradic
#B31B6D #B3AD1B #1BB361 #1B21B3
square
#B31B6D #B3AD1B #1BB361 #1B21B3
split-complementary
#B31B6D #21B31B #1BB3AD
monochromatic
#490B2C #7E134D #B31B6D #DF2C8D #E761A9

Accessibility & contrast

On white

6.37
#B31B6D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#B31B6D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B6D
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B6D#FFFFFF#000000##FFFFFF
##B31B6D1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4E6F
Deuteranopia (green-blind)
#69696A
Tritanopia (blue-blind)
#C20043
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31b6d;
/* rgb */ color: rgb(179, 27, 109);
/* oklch */ color: oklch(51.2% 0.194 354.5);
Tailwind
colors: {
  custom: {
    50: '#cf6c96',
    500: '#b31b6d',
    950: '#000000',
  },
}
SCSS
$custom: #b31b6d;
$custom-light: #cf6c96;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b6d",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 327.632,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51168,
    "c": 0.19443,
    "h": 354.5
  },
  "luminance": 0.11472
}

Semantic roles & 50–950 ramp

primary
#B31B6D
secondary
#5ECC91
accent
#F08D37
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080D
muted
#837B7E

Preview Lab

Preview with #B31B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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