#B31D52#B31D52

#B31D52 is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.185 H 7.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#B31D52
RGBrgb(179, 29, 82)
HSLhsl(339, 72%, 41%)
HSVhsv(339, 84%, 70%)
CMYKcmyk(0%, 83.8%, 54.2%, 29.8%)
CIE-LABlab(39.71, 60.01, 8.81)
CIE-LCHlch(39.71, 60.65, 8.35°)
OKLaboklab(50.42% 0.1831 0.0226)
OKLCHoklch(50.42% 0.185 7)
XYZxyz(20.5547, 11.0746, 9.0363)
Luminance0.1107 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D52 #1DB37E
analogous
#B31D9D #B31D52 #B3331D
triadic
#B31D52 #52B31D #1D52B3
tetradic
#B31D52 #9DB31D #1DB37E #331DB3
square
#B31D52 #9DB31D #1DB37E #331DB3
split-complementary
#B31D52 #1DB333 #1D9DB3
monochromatic
#4A0C22 #7E143A #B31D52 #DD306D #E66492

Accessibility & contrast

On white

6.53
#B31D52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#B31D52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D52
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D52#FFFFFF#000000##FFFFFF
##B31D521.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484B53
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#C40036
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31d52;
/* rgb */ color: rgb(179, 29, 82);
/* oklch */ color: oklch(50.4% 0.185 7.0);
Tailwind
colors: {
  custom: {
    50: '#d16c82',
    500: '#b31d52',
    950: '#000000',
  },
}
SCSS
$custom: #b31d52;
$custom-light: #d16c82;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d52",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 338.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50416,
    "c": 0.18452,
    "h": 7
  },
  "luminance": 0.11072
}

Semantic roles & 50–950 ramp

primary
#B31D52
secondary
#61CBA5
accent
#EFAF39
background
#FDF7F7
surface
#FBEDEE
border
#D4C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #B31D52

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

Preview Lab → · Contrast checker → · Palette generator →

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