#BF40B7#BF40B7

#BF40B7 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.4% C 0.209 H 330.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BF40B7
RGBrgb(191, 64, 183)
HSLhsl(304, 50%, 50%)
HSVhsv(304, 66%, 75%)
CMYKcmyk(0%, 66.5%, 4.2%, 25.1%)
CIE-LABlab(49.69, 64.18, -37.47)
CIE-LCHlch(49.69, 74.32, 329.72°)
OKLaboklab(59.37% 0.1822 -0.1031)
OKLCHoklch(59.37% 0.209 330.5)
XYZxyz(31.8664, 18.1644, 46.6183)
Luminance0.1816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40B7 #40BF48
analogous
#8840BF #BF40B7 #BF4077
triadic
#BF40B7 #B7BF40 #40B7BF
tetradic
#BF40B7 #BF8840 #40BF48 #4077BF
square
#BF40B7 #BF8840 #40BF48 #4077BF
split-complementary
#BF40B7 #77BF40 #40BF88
monochromatic
#63215F #91318B #BF40B7 #CE6EC8 #DE9CDA

Accessibility & contrast

On white

4.53
#BF40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BF40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BF40B7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF40B7#FFFFFF#000000##000000
##BF40B71.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#366BBA
Deuteranopia (green-blind)
#647CB4
Tritanopia (blue-blind)
#C64E76
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bf40b7;
/* rgb */ color: rgb(191, 64, 183);
/* oklch */ color: oklch(59.4% 0.209 330.5);
Tailwind
colors: {
  custom: {
    50: '#d67fcd',
    500: '#bf40b7',
    950: '#000000',
  },
}
SCSS
$custom: #bf40b7;
$custom-light: #d67fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40b7",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 303.78,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.59368,
    "c": 0.20934,
    "h": 330.5
  },
  "luminance": 0.18162
}

Semantic roles & 50–950 ramp

primary
#BF40B7
secondary
#91CA95
accent
#D9574E
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BF40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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