#7E40DC

#7e40dc ≈ Blue Violet

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#7e40dc is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 49.41% red, 25.1% green and 86.27% blue; printed in CMYK it uses 42.73% cyan, 70.91% magenta, 0% yellow and 13.73% black. Its hue angle is 263.85°, with 69.03% saturation and 55.69% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and brand accents. White text on this color reaches a contrast ratio of 5.75:1 (WCAG AA). The closest named color is Blue Violet (#8a2be2), ΔE 3.32.

Description generated from the measured properties of this color.

Conversions of #7e40dc into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6633cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1327

Readable text 5.75:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.65:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #666666 ≈ 0.003% of males
Achromatomaly #7059a3 ≈ 0.001% of males
Protanopia #0067e1 ≈ 1.01% of males
Deuteranopia #0064d9 ≈ 1.27% of males
Tritanopia #65678a ≈ 0.0001% of males
Protanomaly #3d5adf ≈ 1.08% of males
Deuteranomaly #4458da ≈ 4.63% of males
Tritanomaly #705ab1 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-7e40dc {
  color: #7e40dc;
}
Background
.bg-7e40dc {
  background-color: #7e40dc;
  color: #ffffff;
}
Border
.border-7e40dc {
  border: 2px solid #7e40dc;
}
CSS variables
:root {
  --color-primary: #7e40dc;
  --color-primary-rgb: 126 64 220;
  --color-primary-hsl: 264 69% 56%;
}
Gradient
.gradient-7e40dc {
  background: linear-gradient(135deg, #7e40dc, #cc40dc);
}
Colored shadow
.shadow-7e40dc {
  box-shadow: 0 8px 24px rgb(126 64 220 / 0.35);
}

Blue Violet
#7e40dc  rgb(126, 64, 220)  hsl(264, 69%, 56%)  Blue Violet
#9edc40  rgb(158, 220, 64)  hsl(84, 69%, 56%)  Yellow Green
#dc7e40  rgb(220, 126, 64)  hsl(24, 69%, 56%)  Raw Sienna
#40dc7e  rgb(64, 220, 126)  hsl(144, 69%, 56%)  Pastel Green