#B31A52#B31A52

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

Color values

HEX#B31A52
RGBrgb(179, 26, 82)
HSLhsl(338, 75%, 40%)
HSVhsv(338, 85%, 70%)
CMYKcmyk(0%, 85.5%, 54.2%, 29.8%)
CIE-LABlab(39.47, 60.68, 8.48)
CIE-LCHlch(39.47, 61.27, 7.95°)
OKLaboklab(50.24% 0.1853 0.0218)
OKLCHoklch(50.24% 0.187 6.7)
XYZxyz(20.4848, 10.9347, 9.0130)
Luminance0.1093 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A52 #1AB37B
analogous
#B31A9F #B31A52 #B32E1A
triadic
#B31A52 #52B31A #1A52B3
tetradic
#B31A52 #9FB31A #1AB37B #2E1AB3
square
#B31A52 #9FB31A #1AB37B #2E1AB3
split-complementary
#B31A52 #1AB32E #1A9FB3
monochromatic
#480A21 #7E123A #B31A52 #E02A6D #E86091

Accessibility & contrast

On white

6.59
#B31A52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#B31A52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A52
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A52#FFFFFF#000000##FFFFFF
##B31A521.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31a52;
/* rgb */ color: rgb(179, 26, 82);
/* oklch */ color: oklch(50.2% 0.187 6.7);
Tailwind
colors: {
  custom: {
    50: '#d16b82',
    500: '#b31a52',
    950: '#000000',
  },
}
SCSS
$custom: #b31a52;
$custom-light: #d16b82;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a52",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 338.039,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.18659,
    "h": 6.7
  },
  "luminance": 0.10932
}

Semantic roles & 50–950 ramp

primary
#B31A52
secondary
#5DCCA3
accent
#F1AD37
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C

Preview Lab

Preview with #B31A52

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

Preview Lab → · Contrast checker → · Palette generator →

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