#BF40C7#BF40C7

#BF40C7 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.222 H 325.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BF40C7
RGBrgb(191, 64, 199)
HSLhsl(296, 55%, 52%)
HSVhsv(296, 68%, 78%)
CMYKcmyk(4%, 67.8%, 0%, 22%)
CIE-LABlab(50.53, 66.85, -45.43)
CIE-LCHlch(50.53, 80.83, 325.80°)
OKLaboklab(60.24% 0.1828 -0.1262)
OKLCHoklch(60.24% 0.222 325.4)
XYZxyz(33.6273, 18.8688, 55.8926)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40C7 #48C740
analogous
#7B40C7 #BF40C7 #C7408C
triadic
#BF40C7 #C7BF40 #40C7BF
tetradic
#BF40C7 #C77B40 #48C740 #408CC7
square
#BF40C7 #C77B40 #48C740 #408CC7
split-complementary
#BF40C7 #8CC740 #40C77B
monochromatic
#68206D #962E9C #BF40C7 #CF6FD5 #DF9FE3

Accessibility & contrast

On white

4.40
#BF40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BF40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BF40C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF40C7#FFFFFF#000000##000000
##BF40C71.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#226ECB
Deuteranopia (green-blind)
#5B7EC4
Tritanopia (blue-blind)
#C3557F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bf40c7;
/* rgb */ color: rgb(191, 64, 199);
/* oklch */ color: oklch(60.2% 0.222 325.4);
Tailwind
colors: {
  custom: {
    50: '#d67fd8',
    500: '#bf40c7',
    950: '#000000',
  },
}
SCSS
$custom: #bf40c7;
$custom-light: #d67fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40c7",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 296.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60244,
    "c": 0.22207,
    "h": 325.4
  },
  "luminance": 0.18867
}

Semantic roles & 50–950 ramp

primary
#BF40C7
secondary
#97CF94
accent
#DE4A53
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BF40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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