#B31F6D#B31F6D

#B31F6D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.191 H 354.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#B31F6D
RGBrgb(179, 31, 109)
HSLhsl(328, 70%, 41%)
HSVhsv(328, 83%, 70%)
CMYKcmyk(0%, 82.7%, 39.1%, 29.8%)
CIE-LABlab(40.69, 61.92, -6.84)
CIE-LCHlch(40.69, 62.29, 353.69°)
OKLaboklab(51.4% 0.1906 -0.0173)
OKLCHoklch(51.4% 0.191 354.8)
XYZxyz(21.8423, 11.6706, 15.5675)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F6D #1FB365
analogous
#AF1FB3 #B31F6D #B31F23
triadic
#B31F6D #6DB31F #1F6DB3
tetradic
#B31F6D #B3AF1F #1FB365 #1F23B3
square
#B31F6D #B3AF1F #1FB365 #1F23B3
split-complementary
#B31F6D #23B31F #1FB3AF
monochromatic
#4B0D2D #7F164D #B31F6D #DC338C #E568AA

Accessibility & contrast

On white

6.30
#B31F6D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#B31F6D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F6D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F6D#FFFFFF#000000##FFFFFF
##B31F6D1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404F6F
Deuteranopia (green-blind)
#696A6A
Tritanopia (blue-blind)
#C20044
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b31f6d;
/* rgb */ color: rgb(179, 31, 109);
/* oklch */ color: oklch(51.4% 0.191 354.8);
Tailwind
colors: {
  custom: {
    50: '#cf6d96',
    500: '#b31f6d',
    950: '#000000',
  },
}
SCSS
$custom: #b31f6d;
$custom-light: #cf6d96;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f6d",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 328.378,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.514,
    "c": 0.19139,
    "h": 354.8
  },
  "luminance": 0.11668
}

Semantic roles & 50–950 ramp

primary
#B31F6D
secondary
#64CA94
accent
#ED8F3B
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080D
muted
#837B7E

Preview Lab

Preview with #B31F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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