#B31B52#B31B52

#B31B52 is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.3% C 0.186 H 6.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B31B52
RGBrgb(179, 27, 82)
HSLhsl(338, 74%, 40%)
HSVhsv(338, 85%, 70%)
CMYKcmyk(0%, 84.9%, 54.2%, 29.8%)
CIE-LABlab(39.55, 60.46, 8.58)
CIE-LCHlch(39.55, 61.07, 8.08°)
OKLaboklab(50.3% 0.1846 0.0221)
OKLCHoklch(50.3% 0.186 6.8)
XYZxyz(20.5073, 10.9798, 9.0205)
Luminance0.1098 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B52 #1BB37C
analogous
#B31B9E #B31B52 #B3301B
triadic
#B31B52 #52B31B #1B52B3
tetradic
#B31B52 #9EB31B #1BB37C #301BB3
square
#B31B52 #9EB31B #1BB37C #301BB3
split-complementary
#B31B52 #1BB330 #1B9EB3
monochromatic
#490B21 #7E133A #B31B52 #DF2C6D #E76192

Accessibility & contrast

On white

6.57
#B31B52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#B31B52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B52
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B52#FFFFFF#000000##FFFFFF
##B31B521.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474A53
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#C40035
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31b52;
/* rgb */ color: rgb(179, 27, 82);
/* oklch */ color: oklch(50.3% 0.186 6.8);
Tailwind
colors: {
  custom: {
    50: '#d16b82',
    500: '#b31b52',
    950: '#000000',
  },
}
SCSS
$custom: #b31b52;
$custom-light: #d16b82;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b52",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 338.289,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50299,
    "c": 0.18592,
    "h": 6.8
  },
  "luminance": 0.10977
}

Semantic roles & 50–950 ramp

primary
#B31B52
secondary
#5ECCA4
accent
#F0AD37
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C

Preview Lab

Preview with #B31B52

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

Preview Lab → · Contrast checker → · Palette generator →

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