#B31C9E#B31C9E

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

Color values

HEX#B31C9E
RGBrgb(179, 28, 158)
HSLhsl(308, 73%, 41%)
HSVhsv(308, 84%, 70%)
CMYKcmyk(0%, 84.4%, 11.7%, 29.8%)
CIE-LABlab(42.59, 68.57, -34.00)
CIE-LCHlch(42.59, 76.54, 333.62°)
OKLaboklab(53.47% 0.2006 -0.0931)
OKLCHoklch(53.47% 0.221 335.1)
XYZxyz(25.1776, 12.8852, 33.5022)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C9E #1CB331
analogous
#7C1CB3 #B31C9E #B31C53
triadic
#B31C9E #9EB31C #1C9EB3
tetradic
#B31C9E #B37C1C #1CB331 #1C53B3
square
#B31C9E #B37C1C #1CB331 #1C53B3
split-complementary
#B31C9E #53B31C #1CB37C
monochromatic
#490B41 #7E146F #B31C9E #DE2EC6 #E763D4

Accessibility & contrast

On white

5.87
#B31C9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31C9E
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C9E#FFFFFF#000000##FFFFFF
##B31C9E1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#BC2D5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31c9e;
/* rgb */ color: rgb(179, 28, 158);
/* oklch */ color: oklch(53.5% 0.221 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ebb',
    500: '#b31c9e',
    950: '#000000',
  },
}
SCSS
$custom: #b31c9e;
$custom-light: #ce6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c9e",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 308.344,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53466,
    "c": 0.22115,
    "h": 335.1
  },
  "luminance": 0.12883
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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