#BF40E2#BF40E2

#BF40E2 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.9% C 0.245 H 317.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BF40E2
RGBrgb(191, 64, 226)
HSLhsl(287, 74%, 57%)
HSVhsv(287, 72%, 89%)
CMYKcmyk(15.5%, 71.7%, 0%, 11.4%)
CIE-LABlab(52.10, 71.68, -58.34)
CIE-LCHlch(52.10, 92.42, 320.86°)
OKLaboklab(61.87% 0.1816 -0.1639)
OKLCHoklch(61.87% 0.245 317.9)
XYZxyz(37.0448, 20.2358, 73.8913)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40E2 #63E240
analogous
#6E40E2 #BF40E2 #E240B4
triadic
#BF40E2 #E2BF40 #40E2BF
tetradic
#BF40E2 #E26E40 #63E240 #40B4E2
square
#BF40E2 #E26E40 #63E240 #40B4E2
split-complementary
#BF40E2 #B4E240 #40E26E
monochromatic
#771692 #A21EC7 #BF40E2 #D175EA #E3AAF2

Accessibility & contrast

On white

4.16
#BF40E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BF40E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BF40E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF40E2#FFFFFF#000000##000000
##BF40E21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#4680DE
Tritanopia (blue-blind)
#BE618E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bf40e2;
/* rgb */ color: rgb(191, 64, 226);
/* oklch */ color: oklch(61.9% 0.245 317.9);
Tailwind
colors: {
  custom: {
    50: '#d780ec',
    500: '#bf40e2',
    950: '#000000',
  },
}
SCSS
$custom: #bf40e2;
$custom-light: #d780ec;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40e2",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 287.037,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.24459,
    "h": 317.9
  },
  "luminance": 0.20234
}

Semantic roles & 50–950 ramp

primary
#BF40E2
secondary
#ACE09E
accent
#F0385F
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BF40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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