#BC40A8#BC40A8

#BC40A8 is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.196 H 334.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BC40A8
RGBrgb(188, 64, 168)
HSLhsl(310, 49%, 49%)
HSVhsv(310, 66%, 74%)
CMYKcmyk(0%, 66%, 10.6%, 26.3%)
CIE-LABlab(48.50, 61.07, -30.59)
CIE-LCHlch(48.50, 68.30, 333.40°)
OKLaboklab(58.17% 0.1776 -0.0834)
OKLCHoklch(58.17% 0.196 334.8)
XYZxyz(29.6406, 17.1878, 38.7947)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BC40A8 #40BC54
analogous
#9240BC #BC40A8 #BC406A
triadic
#BC40A8 #A8BC40 #40A8BC
tetradic
#BC40A8 #BC9240 #40BC54 #406ABC
square
#BC40A8 #BC9240 #40BC54 #406ABC
split-complementary
#BC40A8 #6ABC40 #40BC92
monochromatic
#612156 #8E307F #BC40A8 #CD6CBD #DD9AD2

Accessibility & contrast

On white

4.73
#BC40A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BC40A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BC40A8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BC40A8#FFFFFF#000000##FFFFFF
##BC40A81.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AB
Deuteranopia (green-blind)
#687AA5
Tritanopia (blue-blind)
#C5496E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bc40a8;
/* rgb */ color: rgb(188, 64, 168);
/* oklch */ color: oklch(58.2% 0.196 334.8);
Tailwind
colors: {
  custom: {
    50: '#d37ec2',
    500: '#bc40a8',
    950: '#000000',
  },
}
SCSS
$custom: #bc40a8;
$custom-light: #d37ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#bc40a8",
  "rgb": {
    "r": 188,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 309.677,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5817,
    "c": 0.19621,
    "h": 334.8
  },
  "luminance": 0.17185
}

Semantic roles & 50–950 ramp

primary
#BC40A8
secondary
#8FC999
accent
#D9654F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BC40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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