#BF40C4#BF40C4

#BF40C4 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.220 H 326.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BF40C4
RGBrgb(191, 64, 196)
HSLhsl(298, 53%, 51%)
HSVhsv(298, 67%, 77%)
CMYKcmyk(2.6%, 67.3%, 0%, 23.1%)
CIE-LABlab(50.37, 66.34, -43.95)
CIE-LCHlch(50.37, 79.58, 326.47°)
OKLaboklab(60.07% 0.1827 -0.1219)
OKLCHoklch(60.07% 0.22 326.3)
XYZxyz(33.2824, 18.7309, 54.0762)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40C4 #45C440
analogous
#7D40C4 #BF40C4 #C44087
triadic
#BF40C4 #C4BF40 #40C4BF
tetradic
#BF40C4 #C47D40 #45C440 #4087C4
square
#BF40C4 #C47D40 #45C440 #4087C4
split-complementary
#BF40C4 #87C440 #40C47D
monochromatic
#662069 #942F98 #BF40C4 #CF6FD2 #DE9EE1

Accessibility & contrast

On white

4.42
#BF40C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BF40C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BF40C4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF40C4#FFFFFF#000000##000000
##BF40C41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#276EC8
Deuteranopia (green-blind)
#5D7DC1
Tritanopia (blue-blind)
#C4547D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bf40c4;
/* rgb */ color: rgb(191, 64, 196);
/* oklch */ color: oklch(60.1% 0.220 326.3);
Tailwind
colors: {
  custom: {
    50: '#d67fd6',
    500: '#bf40c4',
    950: '#000000',
  },
}
SCSS
$custom: #bf40c4;
$custom-light: #d67fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40c4",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 297.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60074,
    "c": 0.21964,
    "h": 326.3
  },
  "luminance": 0.18729
}

Semantic roles & 50–950 ramp

primary
#BF40C4
secondary
#95CD93
accent
#DC4C51
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BF40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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