#B31A5E#B31A5E

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

Color values

HEX#B31A5E
RGBrgb(179, 26, 94)
HSLhsl(333, 75%, 40%)
HSVhsv(333, 85%, 70%)
CMYKcmyk(0%, 85.5%, 47.5%, 29.8%)
CIE-LABlab(39.80, 61.65, 1.32)
CIE-LCHlch(39.80, 61.66, 1.22°)
OKLaboklab(50.6% 0.1896 0.004)
OKLCHoklch(50.6% 0.19 1.2)
XYZxyz(20.9820, 11.1336, 11.6317)
Luminance0.1113 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5E #1AB36F
analogous
#B31AAB #B31A5E #B3221A
triadic
#B31A5E #5EB31A #1A5EB3
tetradic
#B31A5E #ABB31A #1AB36F #221AB3
square
#B31A5E #ABB31A #1AB36F #221AB3
split-complementary
#B31A5E #1AB322 #1AABB3
monochromatic
#480A26 #7E1242 #B31A5E #E02A7B #E8609C

Accessibility & contrast

On white

6.51
#B31A5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#B31A5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A5E
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A5E#FFFFFF#000000##FFFFFF
##B31A5E1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#434B5F
Deuteranopia (green-blind)
#6C685B
Tritanopia (blue-blind)
#C3003B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31a5e;
/* rgb */ color: rgb(179, 26, 94);
/* oklch */ color: oklch(50.6% 0.190 1.2);
Tailwind
colors: {
  custom: {
    50: '#d06b8b',
    500: '#b31a5e',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5e;
$custom-light: #d06b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5e",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 333.333,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50597,
    "c": 0.18964,
    "h": 1.2
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#B31A5E
secondary
#5DCC9B
accent
#F19E37
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B31A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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