#BC31AB#BC31AB

#BC31AB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.216 H 333.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BC31AB
RGBrgb(188, 49, 171)
HSLhsl(307, 59%, 46%)
HSVhsv(307, 74%, 74%)
CMYKcmyk(0%, 73.9%, 9%, 26.3%)
CIE-LABlab(46.75, 66.85, -35.09)
CIE-LCHlch(46.75, 75.50, 332.30°)
OKLaboklab(56.96% 0.1935 -0.0962)
OKLCHoklch(56.96% 0.216 333.6)
XYZxyz(29.1883, 15.8308, 40.0386)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC31AB #31BC42
analogous
#8831BC #BC31AB #BC3166
triadic
#BC31AB #ABBC31 #31ABBC
tetradic
#BC31AB #BC8831 #31BC42 #3166BC
square
#BC31AB #BC8831 #31BC42 #3166BC
split-complementary
#BC31AB #66BC31 #31BC88
monochromatic
#5B1853 #8B247F #BC31AB #D357C4 #E088D5

Accessibility & contrast

On white

5.04
#BC31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BC31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC31AB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC31AB#FFFFFF#000000##FFFFFF
##BC31AB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#C53F6B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bc31ab;
/* rgb */ color: rgb(188, 49, 171);
/* oklch */ color: oklch(57.0% 0.216 333.6);
Tailwind
colors: {
  custom: {
    50: '#d477c4',
    500: '#bc31ab',
    950: '#000000',
  },
}
SCSS
$custom: #bc31ab;
$custom-light: #d477c4;
$custom-dark: #000000;
JSON
{
  "hex": "#bc31ab",
  "rgb": {
    "r": 188,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 307.338,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56956,
    "c": 0.21613,
    "h": 333.6
  },
  "luminance": 0.15828
}

Semantic roles & 50–950 ramp

primary
#BC31AB
secondary
#7FCA88
accent
#E25946
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BC31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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