#B31CB1#B31CB1

#B31CB1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.5% C 0.234 H 328.8°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#B31CB1
RGBrgb(179, 28, 177)
HSLhsl(301, 73%, 41%)
HSVhsv(301, 84%, 70%)
CMYKcmyk(0%, 84.4%, 1.1%, 29.8%)
CIE-LABlab(43.64, 71.38, -43.67)
CIE-LCHlch(43.64, 83.67, 328.54°)
OKLaboklab(54.55% 0.2004 -0.1211)
OKLCHoklch(54.55% 0.234 328.8)
XYZxyz(26.9412, 13.5907, 42.7908)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CB1 #1CB31E
analogous
#6A1CB3 #B31CB1 #B31C65
triadic
#B31CB1 #B1B31C #1CB1B3
tetradic
#B31CB1 #B36A1C #1CB31E #1C65B3
square
#B31CB1 #B36A1C #1CB31E #1C65B3
split-complementary
#B31CB1 #65B31C #1CB36A
monochromatic
#490B48 #7E147D #B31CB1 #DE2EDC #E763E5

Accessibility & contrast

On white

5.65
#B31CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CB1
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CB1#FFFFFF#000000##FFFFFF
##B31CB11.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#B9396A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31cb1;
/* rgb */ color: rgb(179, 28, 177);
/* oklch */ color: oklch(54.5% 0.234 328.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fc9',
    500: '#b31cb1',
    950: '#000000',
  },
}
SCSS
$custom: #b31cb1;
$custom-light: #ce6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cb1",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 177
  },
  "hsl": {
    "h": 300.795,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5455,
    "c": 0.23413,
    "h": 328.8
  },
  "luminance": 0.13589
}

Semantic roles & 50–950 ramp

primary
#B31CB1
secondary
#5FCB61
accent
#F03B38
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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