#B31CB2#B31CB2

#B31CB2 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.6% C 0.235 H 328.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B31CB2
RGBrgb(179, 28, 178)
HSLhsl(300, 73%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0%, 84.4%, 0.6%, 29.8%)
CIE-LABlab(43.70, 71.53, -44.17)
CIE-LCHlch(43.70, 84.07, 328.31°)
OKLaboklab(54.61% 0.2003 -0.1226)
OKLCHoklch(54.61% 0.235 328.5)
XYZxyz(27.0413, 13.6307, 43.3176)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CB2 #1CB31D
analogous
#681CB3 #B31CB2 #B31C67
triadic
#B31CB2 #B2B31C #1CB2B3
tetradic
#B31CB2 #B3681C #1CB31D #1C67B3
square
#B31CB2 #B3681C #1CB31D #1C67B3
split-complementary
#B31CB2 #67B31C #1CB368
monochromatic
#490B49 #7E147D #B31CB2 #DE2EDD #E763E6

Accessibility & contrast

On white

5.64
#B31CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B31CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CB2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CB2#FFFFFF#000000##FFFFFF
##B31CB21.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31cb2;
/* rgb */ color: rgb(179, 28, 178);
/* oklch */ color: oklch(54.6% 0.235 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce6fc9',
    500: '#b31cb2',
    950: '#000000',
  },
}
SCSS
$custom: #b31cb2;
$custom-light: #ce6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cb2",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 178
  },
  "hsl": {
    "h": 300.397,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54611,
    "c": 0.23483,
    "h": 328.5
  },
  "luminance": 0.13629
}

Semantic roles & 50–950 ramp

primary
#B31CB2
secondary
#5FCB60
accent
#F03938
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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