#940CFB

#940cfb ≈ Electric Violet

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

#940cfb is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 58.04% red, 4.71% green and 98.43% blue; printed in CMYK it uses 41.04% cyan, 95.22% magenta, 0% yellow and 1.57% black. Its hue angle is 274.14°, with 96.76% saturation and 51.57% 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.67:1 (WCAG AA). The closest named color is Electric Violet (#8f00ff), ΔE 1.

Description generated from the measured properties of this color.

Conversions of #940cfb 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.1352

Readable text 5.67:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.7:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

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

Text in this color

Background in this color

Border in this color

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

Electric Violet
#940cfb  rgb(148, 12, 251)  hsl(274, 97%, 52%)  Electric Violet
#73fb0c  rgb(115, 251, 12)  hsl(94, 97%, 52%)  Lawn Green
#fb940c  rgb(251, 148, 12)  hsl(34, 97%, 52%)  Carrot Orange
#0cfb94  rgb(12, 251, 148)  hsl(154, 97%, 52%)  Medium Spring Green