#B31D99#B31D99

#B31D99 is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.3% C 0.217 H 336.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B31D99
RGBrgb(179, 29, 153)
HSLhsl(310, 72%, 41%)
HSVhsv(310, 84%, 70%)
CMYKcmyk(0%, 83.8%, 14.5%, 29.8%)
CIE-LABlab(42.41, 67.66, -31.28)
CIE-LCHlch(42.41, 74.54, 335.19°)
OKLaboklab(53.25% 0.1997 -0.0853)
OKLCHoklch(53.25% 0.217 336.9)
XYZxyz(24.7801, 12.7648, 31.2896)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D99 #1DB337
analogous
#821DB3 #B31D99 #B31D4E
triadic
#B31D99 #99B31D #1D99B3
tetradic
#B31D99 #B3821D #1DB337 #1D4EB3
square
#B31D99 #B3821D #1DB337 #1D4EB3
split-complementary
#B31D99 #4EB31D #1DB382
monochromatic
#4A0C3F #7E146C #B31D99 #DD30BF #E664D0

Accessibility & contrast

On white

5.91
#B31D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B31D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D99
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D99#FFFFFF#000000##FFFFFF
##B31D991.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22569C
Deuteranopia (green-blind)
#5B6C96
Tritanopia (blue-blind)
#BD2A5C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31d99;
/* rgb */ color: rgb(179, 29, 153);
/* oklch */ color: oklch(53.3% 0.217 336.9);
Tailwind
colors: {
  custom: {
    50: '#ce6eb7',
    500: '#b31d99',
    950: '#000000',
  },
}
SCSS
$custom: #b31d99;
$custom-light: #ce6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d99",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 310.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53252,
    "c": 0.21716,
    "h": 336.9
  },
  "luminance": 0.12762
}

Semantic roles & 50–950 ramp

primary
#B31D99
secondary
#61CB73
accent
#EF5839
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31D99

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

Preview Lab → · Contrast checker → · Palette generator →

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