#BF40C5#BF40C5

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

Color values

HEX#BF40C5
RGBrgb(191, 64, 197)
HSLhsl(297, 53%, 51%)
HSVhsv(297, 68%, 77%)
CMYKcmyk(3%, 67.5%, 0%, 22.7%)
CIE-LABlab(50.42, 66.51, -44.44)
CIE-LCHlch(50.42, 79.99, 326.25°)
OKLaboklab(60.13% 0.1827 -0.1233)
OKLCHoklch(60.13% 0.22 326)
XYZxyz(33.3966, 18.7765, 54.6777)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40C5 #46C540
analogous
#7C40C5 #BF40C5 #C54088
triadic
#BF40C5 #C5BF40 #40C5BF
tetradic
#BF40C5 #C57C40 #46C540 #4088C5
square
#BF40C5 #C57C40 #46C540 #4088C5
split-complementary
#BF40C5 #88C540 #40C57C
monochromatic
#67206A #942F99 #BF40C5 #CF6FD3 #DE9EE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BF40C5#FFFFFF#000000##000000
##BF40C51.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)
#256EC9
Deuteranopia (green-blind)
#5C7EC2
Tritanopia (blue-blind)
#C4547E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bf40c5;
/* rgb */ color: rgb(191, 64, 197);
/* oklch */ color: oklch(60.1% 0.220 326.0);
Tailwind
colors: {
  custom: {
    50: '#d67fd7',
    500: '#bf40c5',
    950: '#000000',
  },
}
SCSS
$custom: #bf40c5;
$custom-light: #d67fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40c5",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 297.293,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60131,
    "c": 0.22045,
    "h": 326
  },
  "luminance": 0.18774
}

Semantic roles & 50–950 ramp

primary
#BF40C5
secondary
#96CE93
accent
#DD4B52
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BF40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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