#B31C5A#B31C5A

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

Color values

HEX#B31C5A
RGBrgb(179, 28, 90)
HSLhsl(335, 73%, 41%)
HSVhsv(335, 84%, 70%)
CMYKcmyk(0%, 84.4%, 49.7%, 29.8%)
CIE-LABlab(39.84, 60.87, 3.91)
CIE-LCHlch(39.84, 61.00, 3.67°)
OKLaboklab(50.59% 0.1868 0.0106)
OKLCHoklch(50.59% 0.187 3.2)
XYZxyz(20.8530, 11.1554, 10.7260)
Luminance0.1115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C5A #1CB375
analogous
#B31CA5 #B31C5A #B3291C
triadic
#B31C5A #5AB31C #1C5AB3
tetradic
#B31C5A #A5B31C #1CB375 #291CB3
square
#B31C5A #A5B31C #1CB375 #291CB3
split-complementary
#B31C5A #1CB329 #1CA5B3
monochromatic
#490B25 #7E143F #B31C5A #DE2E76 #E76399

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31C5A#FFFFFF#000000##FFFFFF
##B31C5A1.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)
#454B5B
Deuteranopia (green-blind)
#6D6857
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31c5a;
/* rgb */ color: rgb(179, 28, 90);
/* oklch */ color: oklch(50.6% 0.187 3.2);
Tailwind
colors: {
  custom: {
    50: '#d06c88',
    500: '#b31c5a',
    950: '#000000',
  },
}
SCSS
$custom: #b31c5a;
$custom-light: #d06c88;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c5a",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 335.364,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50585,
    "c": 0.18709,
    "h": 3.2
  },
  "luminance": 0.11152
}

Semantic roles & 50–950 ramp

primary
#B31C5A
secondary
#5FCB9F
accent
#F0A438
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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