#B31C9D#B31C9D

#B31C9D is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.220 H 335.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B31C9D
RGBrgb(179, 28, 157)
HSLhsl(309, 73%, 41%)
HSVhsv(309, 84%, 70%)
CMYKcmyk(0%, 84.4%, 12.3%, 29.8%)
CIE-LABlab(42.54, 68.43, -33.48)
CIE-LCHlch(42.54, 76.19, 333.93°)
OKLaboklab(53.41% 0.2005 -0.0916)
OKLCHoklch(53.41% 0.22 335.4)
XYZxyz(25.0919, 12.8509, 33.0507)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C9D #1CB332
analogous
#7E1CB3 #B31C9D #B31C51
triadic
#B31C9D #9DB31C #1C9DB3
tetradic
#B31C9D #B37E1C #1CB332 #1C51B3
square
#B31C9D #B37E1C #1CB332 #1C51B3
split-complementary
#B31C9D #51B31C #1CB37E
monochromatic
#490B40 #7E146F #B31C9D #DE2EC5 #E763D3

Accessibility & contrast

On white

5.88
#B31C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B31C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C9D
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C9D#FFFFFF#000000##FFFFFF
##B31C9D1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C57A0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#BC2C5E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c9d;
/* rgb */ color: rgb(179, 28, 157);
/* oklch */ color: oklch(53.4% 0.220 335.4);
Tailwind
colors: {
  custom: {
    50: '#ce6eba',
    500: '#b31c9d',
    950: '#000000',
  },
}
SCSS
$custom: #b31c9d;
$custom-light: #ce6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c9d",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 308.742,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.22049,
    "h": 335.4
  },
  "luminance": 0.12849
}

Semantic roles & 50–950 ramp

primary
#B31C9D
secondary
#5FCB6F
accent
#F05338
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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