#BC31C7#BC31C7

#BC31C7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.237 H 324.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BC31C7
RGBrgb(188, 49, 199)
HSLhsl(296, 60%, 49%)
HSVhsv(296, 75%, 78%)
CMYKcmyk(5.5%, 75.4%, 0%, 22%)
CIE-LABlab(48.28, 71.30, -49.05)
CIE-LCHlch(48.28, 86.54, 325.48°)
OKLaboklab(58.54% 0.1936 -0.1367)
OKLCHoklch(58.54% 0.237 324.8)
XYZxyz(32.1453, 17.0136, 55.6126)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31C7 #3CC731
analogous
#7131C7 #BC31C7 #C73187
triadic
#BC31C7 #C7BC31 #31C7BC
tetradic
#BC31C7 #C77131 #3CC731 #3187C7
square
#BC31C7 #C77131 #3CC731 #3187C7
split-complementary
#BC31C7 #87C731 #31C771
monochromatic
#5F1965 #8E2596 #BC31C7 #CE5ED7 #DD8FE3

Accessibility & contrast

On white

4.77
#BC31C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BC31C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31C7#FFFFFF#000000##FFFFFF
##BC31C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#5078C3
Tritanopia (blue-blind)
#C04D7B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bc31c7;
/* rgb */ color: rgb(188, 49, 199);
/* oklch */ color: oklch(58.5% 0.237 324.8);
Tailwind
colors: {
  custom: {
    50: '#d478d9',
    500: '#bc31c7',
    950: '#000000',
  },
}
SCSS
$custom: #bc31c7;
$custom-light: #d478d9;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31c7",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 295.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58539,
    "c": 0.23696,
    "h": 324.8
  },
  "luminance": 0.17012
}

Semantic roles & 50–950 ramp

primary
#BC31C7
secondary
#8BCE86
accent
#E44450
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BC31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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