#B31A5A#B31A5A

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

Color values

HEX#B31A5A
RGBrgb(179, 26, 90)
HSLhsl(335, 75%, 40%)
HSVhsv(335, 85%, 70%)
CMYKcmyk(0%, 85.5%, 49.7%, 29.8%)
CIE-LABlab(39.69, 61.31, 3.69)
CIE-LCHlch(39.69, 61.42, 3.44°)
OKLaboklab(50.47% 0.1882 0.01)
OKLCHoklch(50.47% 0.188 3.1)
XYZxyz(20.8071, 11.0637, 10.7107)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5A #1AB373
analogous
#B31AA6 #B31A5A #B3271A
triadic
#B31A5A #5AB31A #1A5AB3
tetradic
#B31A5A #A6B31A #1AB373 #271AB3
square
#B31A5A #A6B31A #1AB373 #271AB3
split-complementary
#B31A5A #1AB327 #1AA6B3
monochromatic
#480A24 #7E123F #B31A5A #E02A76 #E86099

Accessibility & contrast

On white

6.54
#B31A5A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#B31A5A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A5A
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A5A#FFFFFF#000000##FFFFFF
##B31A5A1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444B5B
Deuteranopia (green-blind)
#6C6856
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a5a;
/* rgb */ color: rgb(179, 26, 90);
/* oklch */ color: oklch(50.5% 0.188 3.1);
Tailwind
colors: {
  custom: {
    50: '#d06b88',
    500: '#b31a5a',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5a;
$custom-light: #d06b88;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5a",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 334.902,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50473,
    "c": 0.18849,
    "h": 3.1
  },
  "luminance": 0.11061
}

Semantic roles & 50–950 ramp

primary
#B31A5A
secondary
#5DCC9D
accent
#F1A337
background
#FDF6F8
surface
#FBECEF
border
#D4C7CA
text
#15080B
muted
#837A7C

Preview Lab

Preview with #B31A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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