#B31C9F#B31C9F

#B31C9F is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.222 H 334.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B31C9F
RGBrgb(179, 28, 159)
HSLhsl(308, 73%, 41%)
HSVhsv(308, 84%, 70%)
CMYKcmyk(0%, 84.4%, 11.2%, 29.8%)
CIE-LABlab(42.64, 68.72, -34.52)
CIE-LCHlch(42.64, 76.90, 333.32°)
OKLaboklab(53.52% 0.2006 -0.0946)
OKLCHoklch(53.52% 0.222 334.7)
XYZxyz(25.2640, 12.9198, 33.9574)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C9F #1CB330
analogous
#7B1CB3 #B31C9F #B31C53
triadic
#B31C9F #9FB31C #1C9FB3
tetradic
#B31C9F #B37B1C #1CB330 #1C53B3
square
#B31C9F #B37B1C #1CB330 #1C53B3
split-complementary
#B31C9F #53B31C #1CB37B
monochromatic
#490B41 #7E1470 #B31C9F #DE2EC7 #E763D5

Accessibility & contrast

On white

5.86
#B31C9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B31C9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C9F
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C9F#FFFFFF#000000##FFFFFF
##B31C9F1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1957A2
Deuteranopia (green-blind)
#586C9C
Tritanopia (blue-blind)
#BC2D5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31c9f;
/* rgb */ color: rgb(179, 28, 159);
/* oklch */ color: oklch(53.5% 0.222 334.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ebc',
    500: '#b31c9f',
    950: '#000000',
  },
}
SCSS
$custom: #b31c9f;
$custom-light: #ce6ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c9f",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 307.947,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.22181,
    "h": 334.7
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#B31C9F
secondary
#5FCB6E
accent
#F05038
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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