#B31A5F#B31A5F

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

Color values

HEX#B31A5F
RGBrgb(179, 26, 95)
HSLhsl(333, 75%, 40%)
HSVhsv(333, 85%, 70%)
CMYKcmyk(0%, 85.5%, 46.9%, 29.8%)
CIE-LABlab(39.83, 61.73, 0.73)
CIE-LCHlch(39.83, 61.74, 0.67°)
OKLaboklab(50.63% 0.1899 0.0025)
OKLCHoklch(50.63% 0.19 0.8)
XYZxyz(21.0272, 11.1517, 11.8695)
Luminance0.1115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A5F #1AB36E
analogous
#B31AAB #B31A5F #B3211A
triadic
#B31A5F #5FB31A #1A5FB3
tetradic
#B31A5F #ABB31A #1AB36E #211AB3
square
#B31A5F #ABB31A #1AB36E #211AB3
split-complementary
#B31A5F #1AB321 #1AABB3
monochromatic
#480A26 #7E1243 #B31A5F #E02A7C #E8609D

Accessibility & contrast

On white

6.50
#B31A5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31A5F
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A5F#FFFFFF#000000##FFFFFF
##B31A5F1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31a5f;
/* rgb */ color: rgb(179, 26, 95);
/* oklch */ color: oklch(50.6% 0.190 0.8);
Tailwind
colors: {
  custom: {
    50: '#d06b8c',
    500: '#b31a5f',
    950: '#000000',
  },
}
SCSS
$custom: #b31a5f;
$custom-light: #d06b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a5f",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 332.941,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50629,
    "c": 0.18996,
    "h": 0.8
  },
  "luminance": 0.11149
}

Semantic roles & 50–950 ramp

primary
#B31A5F
secondary
#5DCC9A
accent
#F19D37
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B31A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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