#B31A5B#B31A5B

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

Color values

HEX#B31A5B
RGBrgb(179, 26, 91)
HSLhsl(335, 75%, 40%)
HSVhsv(335, 85%, 70%)
CMYKcmyk(0%, 85.5%, 49.2%, 29.8%)
CIE-LABlab(39.72, 61.39, 3.09)
CIE-LCHlch(39.72, 61.47, 2.89°)
OKLaboklab(50.5% 0.1886 0.0085)
OKLCHoklch(50.5% 0.189 2.6)
XYZxyz(20.8500, 11.0808, 10.9364)
Luminance0.1108 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5B #1AB372
analogous
#B31AA7 #B31A5B #B3261A
triadic
#B31A5B #5BB31A #1A5BB3
tetradic
#B31A5B #A7B31A #1AB372 #261AB3
square
#B31A5B #A7B31A #1AB372 #261AB3
split-complementary
#B31A5B #1AB326 #1AA7B3
monochromatic
#480A25 #7E1240 #B31A5B #E02A77 #E86099

Accessibility & contrast

On white

6.53
#B31A5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31A5B
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A5B#FFFFFF#000000##FFFFFF
##B31A5B1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444B5C
Deuteranopia (green-blind)
#6C6858
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31a5b;
/* rgb */ color: rgb(179, 26, 91);
/* oklch */ color: oklch(50.5% 0.189 2.6);
Tailwind
colors: {
  custom: {
    50: '#d06b89',
    500: '#b31a5b',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5b;
$custom-light: #d06b89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5b",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 334.51,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50503,
    "c": 0.18876,
    "h": 2.6
  },
  "luminance": 0.11078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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