#9840fa ≈ Vivid Violet
#9840fa 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 98.04% blue; printed in CMYK it uses 39.2% cyan, 74.4% magenta, 0% yellow and 1.96% black. Its hue angle is 268.39°, with 94.9% saturation and 61.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 4.72:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 4.96.
Description generated from the measured properties of this color.
| 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 luminance | 0.1724 |
Shades
#9840fa mixed progressively with black.
Tints
#9840fa mixed progressively with white.
Tones
#9840fa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-9840fa {
color: #9840fa;
}
.bg-9840fa {
background-color: #9840fa;
color: #ffffff;
}
.border-9840fa {
border: 2px solid #9840fa;
}
:root {
--color-primary: #9840fa;
--color-primary-rgb: 152 64 250;
--color-primary-hsl: 268 95% 62%;
}
.gradient-9840fa {
background: linear-gradient(135deg, #9840fa, #f540fa);
}
.shadow-9840fa {
box-shadow: 0 8px 24px rgb(152 64 250 / 0.35);
}
Vivid Violet
#9840fa rgb(152, 64, 250) hsl(268, 95%, 62%) Vivid Violet
#a2fa40 rgb(162, 250, 64) hsl(88, 95%, 62%) Green Yellow
#fa9840 rgb(250, 152, 64) hsl(28, 95%, 62%) Neon Carrot
#40fa98 rgb(64, 250, 152) hsl(148, 95%, 62%) Medium Spring Green