#B31A5C#B31A5C

#B31A5C is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.5% C 0.189 H 2.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#B31A5C
RGBrgb(179, 26, 92)
HSLhsl(334, 75%, 40%)
HSVhsv(334, 85%, 70%)
CMYKcmyk(0%, 85.5%, 48.6%, 29.8%)
CIE-LABlab(39.75, 61.48, 2.50)
CIE-LCHlch(39.75, 61.53, 2.33°)
OKLaboklab(50.53% 0.1889 0.007)
OKLCHoklch(50.53% 0.189 2.1)
XYZxyz(20.8934, 11.0982, 11.1651)
Luminance0.1109 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5C #1AB371
analogous
#B31AA8 #B31A5C #B3251A
triadic
#B31A5C #5CB31A #1A5CB3
tetradic
#B31A5C #A8B31A #1AB371 #251AB3
square
#B31A5C #A8B31A #1AB371 #251AB3
split-complementary
#B31A5C #1AB325 #1AA8B3
monochromatic
#480A25 #7E1241 #B31A5C #E02A79 #E8609A

Accessibility & contrast

On white

6.52
#B31A5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#B31A5C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A5C
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A5C#FFFFFF#000000##FFFFFF
##B31A5C1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.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: #b31a5c;
/* rgb */ color: rgb(179, 26, 92);
/* oklch */ color: oklch(50.5% 0.189 2.1);
Tailwind
colors: {
  custom: {
    50: '#d06b89',
    500: '#b31a5c',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5c;
$custom-light: #d06b89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5c",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 334.118,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50534,
    "c": 0.18905,
    "h": 2.1
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#B31A5C
secondary
#5DCC9C
accent
#F1A137
background
#FDF6F8
surface
#FBECF0
border
#D4C7CB
text
#15080B
muted
#837A7C

Preview Lab

Preview with #B31A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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