#B31C9B#B31C9B

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

Color values

HEX#B31C9B
RGBrgb(179, 28, 155)
HSLhsl(310, 73%, 41%)
HSVhsv(310, 84%, 70%)
CMYKcmyk(0%, 84.4%, 13.4%, 29.8%)
CIE-LABlab(42.43, 68.15, -32.44)
CIE-LCHlch(42.43, 75.48, 334.55°)
OKLaboklab(53.31% 0.2005 -0.0887)
OKLCHoklch(53.31% 0.219 336.1)
XYZxyz(24.9225, 12.7832, 32.1588)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C9B #1CB334
analogous
#7F1CB3 #B31C9B #B31C50
triadic
#B31C9B #9BB31C #1C9BB3
tetradic
#B31C9B #B37F1C #1CB334 #1C50B3
square
#B31C9B #B37F1C #1CB334 #1C50B3
split-complementary
#B31C9B #50B31C #1CB37F
monochromatic
#490B3F #7E146D #B31C9B #DE2EC2 #E763D2

Accessibility & contrast

On white

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

On black

3.56
#B31C9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B31C9B#FFFFFF#000000##FFFFFF
##B31C9B1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F569E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#BD2B5D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c9b;
/* rgb */ color: rgb(179, 28, 155);
/* oklch */ color: oklch(53.3% 0.219 336.1);
Tailwind
colors: {
  custom: {
    50: '#ce6eb9',
    500: '#b31c9b',
    950: '#000000',
  },
}
SCSS
$custom: #b31c9b;
$custom-light: #ce6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c9b",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 309.536,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53305,
    "c": 0.21918,
    "h": 336.1
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

primary
#B31C9B
secondary
#5FCB71
accent
#F05538
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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