#9840EC

#9840ec ≈ Vivid Violet

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

#9840ec is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 59.61% red, 25.1% green and 92.55% blue; printed in CMYK it uses 35.59% cyan, 72.88% magenta, 0% yellow and 7.45% black. Its hue angle is 270.7°, with 81.9% saturation and 58.82% 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 4.91:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 4.82.

Description generated from the measured properties of this color.

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

Readable text 4.91:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.28:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #717171 ≈ 0.003% of males
Achromatomaly #8261b0 ≈ 0.001% of males
Protanopia #006ff1 ≈ 1.01% of males
Deuteranopia #0070e9 ≈ 1.27% of males
Tritanopia #866b93 ≈ 0.0001% of males
Protanomaly #5260ef ≈ 1.08% of males
Deuteranomaly #5c60ea ≈ 4.63% of males
Tritanomaly #8e5dbd ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-9840ec {
  color: #9840ec;
}
Background
.bg-9840ec {
  background-color: #9840ec;
  color: #ffffff;
}
Border
.border-9840ec {
  border: 2px solid #9840ec;
}
CSS variables
:root {
  --color-primary: #9840ec;
  --color-primary-rgb: 152 64 236;
  --color-primary-hsl: 271 82% 59%;
}
Gradient
.gradient-9840ec {
  background: linear-gradient(135deg, #9840ec, #ec40ea);
}
Colored shadow
.shadow-9840ec {
  box-shadow: 0 8px 24px rgb(152 64 236 / 0.35);
}

Vivid Violet
#9840ec  rgb(152, 64, 236)  hsl(271, 82%, 59%)  Vivid Violet
#94ec40  rgb(148, 236, 64)  hsl(91, 82%, 59%)  Inchworm
#ec9840  rgb(236, 152, 64)  hsl(31, 82%, 59%)  Carrot Orange
#40ec98  rgb(64, 236, 152)  hsl(151, 82%, 59%)  Medium Spring Green