#BC31B7#BC31B7

#BC31B7 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.225 H 329.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BC31B7
RGBrgb(188, 49, 183)
HSLhsl(302, 59%, 46%)
HSVhsv(302, 74%, 74%)
CMYKcmyk(0%, 73.9%, 2.7%, 26.3%)
CIE-LABlab(47.38, 68.70, -41.17)
CIE-LCHlch(47.38, 80.09, 329.07°)
OKLaboklab(57.61% 0.1939 -0.1138)
OKLCHoklch(57.61% 0.225 329.6)
XYZxyz(30.3844, 16.3092, 46.3382)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31B7 #31BC36
analogous
#7C31BC #BC31B7 #BC3172
triadic
#BC31B7 #B7BC31 #31B7BC
tetradic
#BC31B7 #BC7C31 #31BC36 #3172BC
square
#BC31B7 #BC7C31 #31BC36 #3172BC
split-complementary
#BC31B7 #72BC31 #31BC7C
monochromatic
#5B1858 #8B2488 #BC31B7 #D357CF #E088DD

Accessibility & contrast

On white

4.93
#BC31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BC31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31B7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31B7#FFFFFF#000000##FFFFFF
##BC31B71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BB
Deuteranopia (green-blind)
#5A77B4
Tritanopia (blue-blind)
#C34572
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bc31b7;
/* rgb */ color: rgb(188, 49, 183);
/* oklch */ color: oklch(57.6% 0.225 329.6);
Tailwind
colors: {
  custom: {
    50: '#d478cd',
    500: '#bc31b7',
    950: '#000000',
  },
}
SCSS
$custom: #bc31b7;
$custom-light: #d478cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31b7",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 302.158,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.22485,
    "h": 329.6
  },
  "luminance": 0.16307
}

Semantic roles & 50–950 ramp

primary
#BC31B7
secondary
#7FCA82
accent
#E24C46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BC31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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