#B31D9C#B31D9C

#B31D9C is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.219 H 335.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B31D9C
RGBrgb(179, 29, 156)
HSLhsl(309, 72%, 41%)
HSVhsv(309, 84%, 70%)
CMYKcmyk(0%, 83.8%, 12.8%, 29.8%)
CIE-LABlab(42.56, 68.08, -32.85)
CIE-LCHlch(42.56, 75.59, 334.24°)
OKLaboklab(53.41% 0.1999 -0.0898)
OKLCHoklch(53.41% 0.219 335.8)
XYZxyz(25.0310, 12.8651, 32.6110)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D9C #1DB334
analogous
#7F1DB3 #B31D9C #B31D51
triadic
#B31D9C #9CB31D #1D9CB3
tetradic
#B31D9C #B37F1D #1DB334 #1D51B3
square
#B31D9C #B37F1D #1DB334 #1D51B3
split-complementary
#B31D9C #51B31D #1DB37F
monochromatic
#4A0C40 #7E146E #B31D9C #DD30C3 #E664D2

Accessibility & contrast

On white

5.88
#B31D9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B31D9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D9C
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D9C#FFFFFF#000000##FFFFFF
##B31D9C1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F579F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#BC2C5E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31d9c;
/* rgb */ color: rgb(179, 29, 156);
/* oklch */ color: oklch(53.4% 0.219 335.8);
Tailwind
colors: {
  custom: {
    50: '#ce6eb9',
    500: '#b31d9c',
    950: '#000000',
  },
}
SCSS
$custom: #b31d9c;
$custom-light: #ce6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d9c",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 309.2,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53411,
    "c": 0.21912,
    "h": 335.8
  },
  "luminance": 0.12863
}

Semantic roles & 50–950 ramp

primary
#B31D9C
secondary
#61CB71
accent
#EF5539
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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