#940EFB

#940efb ≈ Electric Violet

  • violet
  • Lightness: medium
  • Saturation: vivid
  • Cool

#940efb is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 58.04% red, 5.49% green and 98.43% blue; printed in CMYK it uses 41.04% cyan, 94.42% magenta, 0% yellow and 1.57% black. Its hue angle is 273.92°, with 96.73% saturation and 51.96% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 5.65:1 (WCAG AA). The closest named color is Electric Violet (#8f00ff), ΔE 1.05.

Description generated from the measured properties of this color.

Conversions of #940efb into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#9900ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1358

Readable text 5.65:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.72:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #676767 ≈ 0.003% of males
Achromatomaly #7c51b6 ≈ 0.001% of males
Protanopia #0066ff ≈ 1.01% of males
Deuteranopia #0066f7 ≈ 1.27% of males
Tritanopia #7b6294 ≈ 0.0001% of males
Protanomaly #3051fe ≈ 1.08% of males
Deuteranomaly #4250f9 ≈ 4.63% of males
Tritanomaly #864ec6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-940efb {
  color: #940efb;
}
Background
.bg-940efb {
  background-color: #940efb;
  color: #ffffff;
}
Border
.border-940efb {
  border: 2px solid #940efb;
}
CSS variables
:root {
  --color-primary: #940efb;
  --color-primary-rgb: 148 14 251;
  --color-primary-hsl: 274 97% 52%;
}
Gradient
.gradient-940efb {
  background: linear-gradient(135deg, #940efb, #fb0eec);
}
Colored shadow
.shadow-940efb {
  box-shadow: 0 8px 24px rgb(148 14 251 / 0.35);
}

Electric Violet
#940efb  rgb(148, 14, 251)  hsl(274, 97%, 52%)  Electric Violet
#75fb0e  rgb(117, 251, 14)  hsl(94, 97%, 52%)  Lawn Green
#fb940e  rgb(251, 148, 14)  hsl(34, 97%, 52%)  Carrot Orange
#0efb94  rgb(14, 251, 148)  hsl(154, 97%, 52%)  Medium Spring Green