#BC31B8#BC31B8

#BC31B8 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.7% C 0.226 H 329.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BC31B8
RGBrgb(188, 49, 184)
HSLhsl(302, 59%, 46%)
HSVhsv(302, 74%, 74%)
CMYKcmyk(0%, 73.9%, 2.1%, 26.3%)
CIE-LABlab(47.43, 68.86, -41.67)
CIE-LCHlch(47.43, 80.48, 328.82°)
OKLaboklab(57.66% 0.194 -0.1152)
OKLCHoklch(57.66% 0.226 329.3)
XYZxyz(30.4888, 16.3510, 46.8883)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31B8 #31BC35
analogous
#7B31BC #BC31B8 #BC3173
triadic
#BC31B8 #B8BC31 #31B8BC
tetradic
#BC31B8 #BC7B31 #31BC35 #3173BC
square
#BC31B8 #BC7B31 #31BC35 #3173BC
split-complementary
#BC31B8 #73BC31 #31BC7B
monochromatic
#5B1859 #8B2488 #BC31B8 #D357D0 #E088DD

Accessibility & contrast

On white

4.92
#BC31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BC31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31B8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31B8#FFFFFF#000000##FFFFFF
##BC31B81.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bc31b8;
/* rgb */ color: rgb(188, 49, 184);
/* oklch */ color: oklch(57.7% 0.226 329.3);
Tailwind
colors: {
  custom: {
    50: '#d478ce',
    500: '#bc31b8',
    950: '#000000',
  },
}
SCSS
$custom: #bc31b8;
$custom-light: #d478ce;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31b8",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 301.727,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57664,
    "c": 0.22559,
    "h": 329.3
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

primary
#BC31B8
secondary
#7FCA81
accent
#E24A46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BC31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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