#B31F5C#B31F5C

#B31F5C is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.8% C 0.185 H 2.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#B31F5C
RGBrgb(179, 31, 92)
HSLhsl(335, 70%, 41%)
HSVhsv(335, 83%, 70%)
CMYKcmyk(0%, 82.7%, 48.6%, 29.8%)
CIE-LABlab(40.15, 60.33, 3.08)
CIE-LCHlch(40.15, 60.41, 2.92°)
OKLaboklab(50.83% 0.1852 0.0085)
OKLCHoklch(50.83% 0.185 2.6)
XYZxyz(21.0140, 11.3393, 11.2053)
Luminance0.1134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F5C #1FB376
analogous
#B31FA6 #B31F5C #B32C1F
triadic
#B31F5C #5CB31F #1F5CB3
tetradic
#B31F5C #A6B31F #1FB376 #2C1FB3
square
#B31F5C #A6B31F #1FB376 #2C1FB3
split-complementary
#B31F5C #1FB32C #1FA6B3
monochromatic
#4B0D26 #7F1641 #B31F5C #DC3379 #E5689B

Accessibility & contrast

On white

6.43
#B31F5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#B31F5C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F5C
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F5C#FFFFFF#000000##FFFFFF
##B31F5C1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464C5D
Deuteranopia (green-blind)
#6D6959
Tritanopia (blue-blind)
#C3003B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b31f5c;
/* rgb */ color: rgb(179, 31, 92);
/* oklch */ color: oklch(50.8% 0.185 2.6);
Tailwind
colors: {
  custom: {
    50: '#d06d89',
    500: '#b31f5c',
    950: '#000000',
  },
}
SCSS
$custom: #b31f5c;
$custom-light: #d06d89;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f5c",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 335.27,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50827,
    "c": 0.1854,
    "h": 2.6
  },
  "luminance": 0.11336
}

Semantic roles & 50–950 ramp

primary
#B31F5C
secondary
#64CAA0
accent
#EDA43B
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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