#BC31A7#BC31A7

#BC31A7 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.213 H 335.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BC31A7
RGBrgb(188, 49, 167)
HSLhsl(309, 59%, 46%)
HSVhsv(309, 74%, 74%)
CMYKcmyk(0%, 73.9%, 11.2%, 26.3%)
CIE-LABlab(46.55, 66.26, -33.04)
CIE-LCHlch(46.55, 74.04, 333.50°)
OKLaboklab(56.75% 0.1933 -0.0903)
OKLCHoklch(56.75% 0.213 335)
XYZxyz(28.8127, 15.6806, 38.0609)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31A7 #31BC46
analogous
#8C31BC #BC31A7 #BC3162
triadic
#BC31A7 #A7BC31 #31A7BC
tetradic
#BC31A7 #BC8C31 #31BC46 #3162BC
square
#BC31A7 #BC8C31 #31BC46 #3162BC
split-complementary
#BC31A7 #62BC31 #31BC8C
monochromatic
#5B1851 #8B247C #BC31A7 #D357C0 #E088D3

Accessibility & contrast

On white

5.08
#BC31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BC31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31A7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31A7#FFFFFF#000000##FFFFFF
##BC31A71.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#6276A4
Tritanopia (blue-blind)
#C53D69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bc31a7;
/* rgb */ color: rgb(188, 49, 167);
/* oklch */ color: oklch(56.7% 0.213 335.0);
Tailwind
colors: {
  custom: {
    50: '#d477c1',
    500: '#bc31a7',
    950: '#000000',
  },
}
SCSS
$custom: #bc31a7;
$custom-light: #d477c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31a7",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 309.065,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56748,
    "c": 0.21331,
    "h": 335
  },
  "luminance": 0.15678
}

Semantic roles & 50–950 ramp

primary
#BC31A7
secondary
#7FCA8A
accent
#E25E46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BC31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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