#B31F58#B31F58

#B31F58 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.7% C 0.184 H 4.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#B31F58
RGBrgb(179, 31, 88)
HSLhsl(337, 70%, 41%)
HSVhsv(337, 83%, 70%)
CMYKcmyk(0%, 82.7%, 50.8%, 29.8%)
CIE-LABlab(40.03, 60.00, 5.46)
CIE-LCHlch(40.03, 60.24, 5.20°)
OKLaboklab(50.71% 0.1838 0.0144)
OKLCHoklch(50.71% 0.184 4.5)
XYZxyz(20.8437, 11.2712, 10.3086)
Luminance0.1127 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F58 #1FB37A
analogous
#B31FA2 #B31F58 #B3301F
triadic
#B31F58 #58B31F #1F58B3
tetradic
#B31F58 #A2B31F #1FB37A #301FB3
square
#B31F58 #A2B31F #1FB37A #301FB3
split-complementary
#B31F58 #1FB330 #1FA2B3
monochromatic
#4B0D25 #7F163E #B31F58 #DC3374 #E56898

Accessibility & contrast

On white

6.45
#B31F58 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#B31F58 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F58
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F58#FFFFFF#000000##FFFFFF
##B31F581.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474C59
Deuteranopia (green-blind)
#6E6955
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31f58;
/* rgb */ color: rgb(179, 31, 88);
/* oklch */ color: oklch(50.7% 0.184 4.5);
Tailwind
colors: {
  custom: {
    50: '#d06c86',
    500: '#b31f58',
    950: '#000000',
  },
}
SCSS
$custom: #b31f58;
$custom-light: #d06c86;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f58",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 336.892,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50708,
    "c": 0.18435,
    "h": 4.5
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

primary
#B31F58
secondary
#64CAA3
accent
#EDA83B
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31F58

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

Preview Lab → · Contrast checker → · Palette generator →

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