#B31A48#B31A48

#B31A48 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.0% C 0.185 H 11.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#B31A48
RGBrgb(179, 26, 72)
HSLhsl(342, 75%, 40%)
HSVhsv(342, 85%, 70%)
CMYKcmyk(0%, 85.5%, 59.8%, 29.8%)
CIE-LABlab(39.23, 59.98, 14.53)
CIE-LCHlch(39.23, 61.72, 13.61°)
OKLaboklab(49.99% 0.1815 0.036)
OKLCHoklch(49.99% 0.185 11.2)
XYZxyz(20.1316, 10.7934, 7.1529)
Luminance0.1079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A48 #1AB385
analogous
#B31A94 #B31A48 #B3391A
triadic
#B31A48 #48B31A #1A48B3
tetradic
#B31A48 #94B31A #1AB385 #391AB3
square
#B31A48 #94B31A #1AB385 #391AB3
split-complementary
#B31A48 #1AB339 #1A94B3
monochromatic
#480A1D #7E1233 #B31A48 #E02A61 #E86089

Accessibility & contrast

On white

6.65
#B31A48 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#B31A48 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A48
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A48#FFFFFF#000000##FFFFFF
##B31A481.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494949
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#C4002F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31a48;
/* rgb */ color: rgb(179, 26, 72);
/* oklch */ color: oklch(50.0% 0.185 11.2);
Tailwind
colors: {
  custom: {
    50: '#d16a7a',
    500: '#b31a48',
    950: '#000000',
  },
}
SCSS
$custom: #b31a48;
$custom-light: #d16a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a48",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 341.961,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49989,
    "c": 0.18502,
    "h": 11.2
  },
  "luminance": 0.1079
}

Semantic roles & 50–950 ramp

primary
#B31A48
secondary
#5DCCAB
accent
#F1B937
background
#FDF6F7
surface
#FBECED
border
#D4C7C8
text
#150809
muted
#837A7B

Preview Lab

Preview with #B31A48

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

Preview Lab → · Contrast checker → · Palette generator →

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