#BC31B4#BC31B4

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

Color values

HEX#BC31B4
RGBrgb(188, 49, 180)
HSLhsl(303, 59%, 46%)
HSVhsv(303, 74%, 74%)
CMYKcmyk(0%, 73.9%, 4.3%, 26.3%)
CIE-LABlab(47.22, 68.23, -39.66)
CIE-LCHlch(47.22, 78.92, 329.83°)
OKLaboklab(57.44% 0.1939 -0.1094)
OKLCHoklch(57.44% 0.223 330.6)
XYZxyz(30.0755, 16.1857, 44.7113)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31B4 #31BC39
analogous
#7F31BC #BC31B4 #BC316F
triadic
#BC31B4 #B4BC31 #31B4BC
tetradic
#BC31B4 #BC7F31 #31BC39 #316FBC
square
#BC31B4 #BC7F31 #31BC39 #316FBC
split-complementary
#BC31B4 #6FBC31 #31BC7F
monochromatic
#5B1857 #8B2486 #BC31B4 #D357CC #E088DB

Accessibility & contrast

On white

4.96
#BC31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BC31B4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31B4#FFFFFF#000000##FFFFFF
##BC31B41.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B8
Deuteranopia (green-blind)
#5C77B1
Tritanopia (blue-blind)
#C34370
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bc31b4;
/* rgb */ color: rgb(188, 49, 180);
/* oklch */ color: oklch(57.4% 0.223 330.6);
Tailwind
colors: {
  custom: {
    50: '#d478cb',
    500: '#bc31b4',
    950: '#000000',
  },
}
SCSS
$custom: #bc31b4;
$custom-light: #d478cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31b4",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 303.453,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57441,
    "c": 0.22264,
    "h": 330.6
  },
  "luminance": 0.16183
}

Semantic roles & 50–950 ramp

primary
#BC31B4
secondary
#7FCA83
accent
#E24F46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BC31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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