#B31C9A#B31C9A

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

Color values

HEX#B31C9A
RGBrgb(179, 28, 154)
HSLhsl(310, 73%, 41%)
HSVhsv(310, 84%, 70%)
CMYKcmyk(0%, 84.4%, 14%, 29.8%)
CIE-LABlab(42.38, 68.02, -31.92)
CIE-LCHlch(42.38, 75.13, 334.86°)
OKLaboklab(53.25% 0.2004 -0.0871)
OKLCHoklch(53.25% 0.219 336.5)
XYZxyz(24.8389, 12.7497, 31.7184)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C9A #1CB335
analogous
#801CB3 #B31C9A #B31C4E
triadic
#B31C9A #9AB31C #1C9AB3
tetradic
#B31C9A #B3801C #1CB335 #1C4EB3
square
#B31C9A #B3801C #1CB335 #1C4EB3
split-complementary
#B31C9A #4EB31C #1CB380
monochromatic
#490B3F #7E146C #B31C9A #DE2EC1 #E763D1

Accessibility & contrast

On white

5.92
#B31C9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31C9A
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C9A#FFFFFF#000000##FFFFFF
##B31C9A1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20569D
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#BD2A5D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c9a;
/* rgb */ color: rgb(179, 28, 154);
/* oklch */ color: oklch(53.3% 0.219 336.5);
Tailwind
colors: {
  custom: {
    50: '#ce6eb8',
    500: '#b31c9a',
    950: '#000000',
  },
}
SCSS
$custom: #b31c9a;
$custom-light: #ce6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c9a",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 309.934,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53252,
    "c": 0.21853,
    "h": 336.5
  },
  "luminance": 0.12747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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