#B31D8B#B31D8B

#B31D8B is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.6% C 0.208 H 342.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#B31D8B
RGBrgb(179, 29, 139)
HSLhsl(316, 72%, 41%)
HSVhsv(316, 84%, 70%)
CMYKcmyk(0%, 83.8%, 22.3%, 29.8%)
CIE-LABlab(41.73, 65.81, -23.82)
CIE-LCHlch(41.73, 69.99, 340.10°)
OKLaboklab(52.55% 0.1984 -0.0641)
OKLCHoklch(52.55% 0.208 342.1)
XYZxyz(23.6909, 12.3291, 25.5532)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D8B #1DB345
analogous
#901DB3 #B31D8B #B31D40
triadic
#B31D8B #8BB31D #1D8BB3
tetradic
#B31D8B #B3901D #1DB345 #1D40B3
square
#B31D8B #B3901D #1DB345 #1D40B3
split-complementary
#B31D8B #40B31D #1DB390
monochromatic
#4A0C39 #7E1462 #B31D8B #DD30AF #E664C3

Accessibility & contrast

On white

6.06
#B31D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B31D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D8B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D8B#FFFFFF#000000##FFFFFF
##B31D8B1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#BF2054
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b31d8b;
/* rgb */ color: rgb(179, 29, 139);
/* oklch */ color: oklch(52.6% 0.208 342.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ead',
    500: '#b31d8b',
    950: '#000000',
  },
}
SCSS
$custom: #b31d8b;
$custom-light: #ce6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d8b",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 316,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52552,
    "c": 0.20844,
    "h": 342.1
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#B31D8B
secondary
#61CB7D
accent
#EF6939
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B31D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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