#BC31B5#BC31B5

#BC31B5 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.223 H 330.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BC31B5
RGBrgb(188, 49, 181)
HSLhsl(303, 59%, 46%)
HSVhsv(303, 74%, 74%)
CMYKcmyk(0%, 73.9%, 3.7%, 26.3%)
CIE-LABlab(47.27, 68.39, -40.16)
CIE-LCHlch(47.27, 79.31, 329.57°)
OKLaboklab(57.5% 0.1939 -0.1109)
OKLCHoklch(57.5% 0.223 330.2)
XYZxyz(30.1777, 16.2266, 45.2497)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31B5 #31BC38
analogous
#7E31BC #BC31B5 #BC316F
triadic
#BC31B5 #B5BC31 #31B5BC
tetradic
#BC31B5 #BC7E31 #31BC38 #316FBC
square
#BC31B5 #BC7E31 #31BC38 #316FBC
split-complementary
#BC31B5 #6FBC31 #31BC7E
monochromatic
#5B1858 #8B2486 #BC31B5 #D357CD #E088DB

Accessibility & contrast

On white

4.95
#BC31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BC31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31B5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31B5#FFFFFF#000000##FFFFFF
##BC31B51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B9
Deuteranopia (green-blind)
#5C77B2
Tritanopia (blue-blind)
#C34471
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bc31b5;
/* rgb */ color: rgb(188, 49, 181);
/* oklch */ color: oklch(57.5% 0.223 330.2);
Tailwind
colors: {
  custom: {
    50: '#d478cb',
    500: '#bc31b5',
    950: '#000000',
  },
}
SCSS
$custom: #bc31b5;
$custom-light: #d478cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31b5",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 303.022,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57496,
    "c": 0.22337,
    "h": 330.2
  },
  "luminance": 0.16224
}

Semantic roles & 50–950 ramp

primary
#BC31B5
secondary
#7FCA83
accent
#E24E46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BC31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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