#B31B6C#B31B6C

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

Color values

HEX#B31B6C
RGBrgb(179, 27, 108)
HSLhsl(328, 74%, 40%)
HSVhsv(328, 85%, 70%)
CMYKcmyk(0%, 84.9%, 39.7%, 29.8%)
CIE-LABlab(40.33, 62.73, -6.74)
CIE-LCHlch(40.33, 63.09, 353.86°)
OKLaboklab(51.13% 0.1933 -0.017)
OKLCHoklch(51.13% 0.194 355)
XYZxyz(21.6907, 11.4531, 15.2529)
Luminance0.1145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B6C #1BB362
analogous
#AE1BB3 #B31B6C #B31B20
triadic
#B31B6C #6CB31B #1B6CB3
tetradic
#B31B6C #B3AE1B #1BB362 #1B20B3
square
#B31B6C #B3AE1B #1BB362 #1B20B3
split-complementary
#B31B6C #20B31B #1BB3AE
monochromatic
#490B2C #7E134C #B31B6C #DF2C8B #E761A9

Accessibility & contrast

On white

6.38
#B31B6C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31B6C
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B6C#FFFFFF#000000##FFFFFF
##B31B6C1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4D6E
Deuteranopia (green-blind)
#696969
Tritanopia (blue-blind)
#C20042
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31b6c;
/* rgb */ color: rgb(179, 27, 108);
/* oklch */ color: oklch(51.1% 0.194 355.0);
Tailwind
colors: {
  custom: {
    50: '#cf6c96',
    500: '#b31b6c',
    950: '#000000',
  },
}
SCSS
$custom: #b31b6c;
$custom-light: #cf6c96;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b6c",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 328.026,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51131,
    "c": 0.19401,
    "h": 355
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#B31B6C
secondary
#5ECC91
accent
#F08E37
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#15080D
muted
#837B7E

Preview Lab

Preview with #B31B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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