#B31A5D#B31A5D

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

Color values

HEX#B31A5D
RGBrgb(179, 26, 93)
HSLhsl(334, 75%, 40%)
HSVhsv(334, 85%, 70%)
CMYKcmyk(0%, 85.5%, 48%, 29.8%)
CIE-LABlab(39.77, 61.56, 1.91)
CIE-LCHlch(39.77, 61.59, 1.78°)
OKLaboklab(50.57% 0.1893 0.0055)
OKLCHoklch(50.57% 0.189 1.7)
XYZxyz(20.9374, 11.1158, 11.3969)
Luminance0.1111 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5D #1AB370
analogous
#B31AAA #B31A5D #B3231A
triadic
#B31A5D #5DB31A #1A5DB3
tetradic
#B31A5D #AAB31A #1AB370 #231AB3
square
#B31A5D #AAB31A #1AB370 #231AB3
split-complementary
#B31A5D #1AB323 #1AAAB3
monochromatic
#480A25 #7E1241 #B31A5D #E02A7A #E8609B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31A5D#FFFFFF#000000##FFFFFF
##B31A5D1.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)
#444B5E
Deuteranopia (green-blind)
#6C685A
Tritanopia (blue-blind)
#C3003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31a5d;
/* rgb */ color: rgb(179, 26, 93);
/* oklch */ color: oklch(50.6% 0.189 1.7);
Tailwind
colors: {
  custom: {
    50: '#d06b8a',
    500: '#b31a5d',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5d;
$custom-light: #d06b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5d",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 333.725,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50565,
    "c": 0.18934,
    "h": 1.7
  },
  "luminance": 0.11113
}

Semantic roles & 50–950 ramp

primary
#B31A5D
secondary
#5DCC9B
accent
#F19F37
background
#FDF6F8
surface
#FBECF0
border
#D4C7CB
text
#15080B
muted
#837A7C

Preview Lab

Preview with #B31A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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