#9840EF

#9840ef ≈ Vivid Violet

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

#9840ef 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 93.73% blue; printed in CMYK it uses 36.4% cyan, 73.22% magenta, 0% yellow and 6.27% black. Its hue angle is 270.17°, with 84.54% saturation and 59.41% 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.87:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 4.79.

Description generated from the measured properties of this color.

Conversions of #9840ef 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.1657

Readable text 4.87:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.31:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #717171 ≈ 0.003% of males
Achromatomaly #8261b2 ≈ 0.001% of males
Protanopia #0070f4 ≈ 1.01% of males
Deuteranopia #0070ec ≈ 1.27% of males
Tritanopia #856c95 ≈ 0.0001% of males
Protanomaly #5060f2 ≈ 1.08% of males
Deuteranomaly #5a61ed ≈ 4.63% of males
Tritanomaly #8d5ec0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Vivid Violet
#9840ef  rgb(152, 64, 239)  hsl(270, 85%, 59%)  Vivid Violet
#97ef40  rgb(151, 239, 64)  hsl(90, 85%, 59%)  Inchworm
#ef9840  rgb(239, 152, 64)  hsl(30, 85%, 59%)  Carrot Orange
#40ef98  rgb(64, 239, 152)  hsl(150, 85%, 59%)  Medium Spring Green