#B31A51#B31A51

#B31A51 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.186 H 7.2°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B31A51
RGBrgb(179, 26, 81)
HSLhsl(338, 75%, 40%)
HSVhsv(338, 85%, 70%)
CMYKcmyk(0%, 85.5%, 54.7%, 29.8%)
CIE-LABlab(39.44, 60.61, 9.08)
CIE-LCHlch(39.44, 61.28, 8.52°)
OKLaboklab(50.22% 0.1849 0.0233)
OKLCHoklch(50.22% 0.186 7.2)
XYZxyz(20.4470, 10.9196, 8.8140)
Luminance0.1092 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A51 #1AB37C
analogous
#B31A9E #B31A51 #B32F1A
triadic
#B31A51 #51B31A #1A51B3
tetradic
#B31A51 #9EB31A #1AB37C #2F1AB3
square
#B31A51 #9EB31A #1AB37C #2F1AB3
split-complementary
#B31A51 #1AB32F #1A9EB3
monochromatic
#480A21 #7E1239 #B31A51 #E02A6C #E86091

Accessibility & contrast

On white

6.60
#B31A51 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#B31A51 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A51
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A51#FFFFFF#000000##FFFFFF
##B31A511.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474A52
Deuteranopia (green-blind)
#6E684D
Tritanopia (blue-blind)
#C40034
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a51;
/* rgb */ color: rgb(179, 26, 81);
/* oklch */ color: oklch(50.2% 0.186 7.2);
Tailwind
colors: {
  custom: {
    50: '#d16b81',
    500: '#b31a51',
    950: '#000000',
  },
}
SCSS
$custom: #b31a51;
$custom-light: #d16b81;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a51",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 338.431,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50216,
    "c": 0.1864,
    "h": 7.2
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#B31A51
secondary
#5DCCA4
accent
#F1AE37
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C

Preview Lab

Preview with #B31A51

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

Preview Lab → · Contrast checker → · Palette generator →

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