#B31D9F#B31D9F

#B31D9F is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.221 H 334.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B31D9F
RGBrgb(179, 29, 159)
HSLhsl(308, 72%, 41%)
HSVhsv(308, 84%, 70%)
CMYKcmyk(0%, 83.8%, 11.2%, 29.8%)
CIE-LABlab(42.72, 68.50, -34.41)
CIE-LCHlch(42.72, 76.66, 333.33°)
OKLaboklab(53.57% 0.2 -0.0943)
OKLCHoklch(53.57% 0.221 334.8)
XYZxyz(25.2881, 12.9680, 33.9654)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D9F #1DB331
analogous
#7C1DB3 #B31D9F #B31D54
triadic
#B31D9F #9FB31D #1D9FB3
tetradic
#B31D9F #B37C1D #1DB331 #1D54B3
square
#B31D9F #B37C1D #1DB331 #1D54B3
split-complementary
#B31D9F #54B31D #1DB37C
monochromatic
#4A0C41 #7E1470 #B31D9F #DD30C6 #E664D5

Accessibility & contrast

On white

5.84
#B31D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B31D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D9F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D9F#FFFFFF#000000##FFFFFF
##B31D9F1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A57A2
Deuteranopia (green-blind)
#586C9C
Tritanopia (blue-blind)
#BC2E60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31d9f;
/* rgb */ color: rgb(179, 29, 159);
/* oklch */ color: oklch(53.6% 0.221 334.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fbc',
    500: '#b31d9f',
    950: '#000000',
  },
}
SCSS
$custom: #b31d9f;
$custom-light: #ce6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d9f",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 308,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53572,
    "c": 0.2211,
    "h": 334.8
  },
  "luminance": 0.12966
}

Semantic roles & 50–950 ramp

primary
#B31D9F
secondary
#61CB6F
accent
#EF5139
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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