#840CDA

#840cda ≈ Dark Violet

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

#840cda is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 51.76% red, 4.71% green and 85.49% blue; printed in CMYK it uses 39.45% cyan, 94.5% magenta, 0% yellow and 14.51% black. Its hue angle is 274.95°, with 89.57% saturation and 45.1% 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 6.89:1 (WCAG AA). The closest named color is Dark Violet (#9400d3), ΔE 2.78.

Description generated from the measured properties of this color.

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

Readable text 6.89:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.05:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5a5a5a ≈ 0.003% of males
Achromatomaly #6d479e ≈ 0.001% of males
Protanopia #0059df ≈ 1.01% of males
Deuteranopia #0059d7 ≈ 1.27% of males
Tritanopia #715480 ≈ 0.0001% of males
Protanomaly #3046dd ≈ 1.08% of males
Deuteranomaly #3f46d8 ≈ 4.63% of males
Tritanomaly #7942ac ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-840cda {
  color: #840cda;
}
Background
.bg-840cda {
  background-color: #840cda;
  color: #ffffff;
}
Border
.border-840cda {
  border: 2px solid #840cda;
}
CSS variables
:root {
  --color-primary: #840cda;
  --color-primary-rgb: 132 12 218;
  --color-primary-hsl: 275 90% 45%;
}
Gradient
.gradient-840cda {
  background: linear-gradient(135deg, #840cda, #da0cc9);
}
Colored shadow
.shadow-840cda {
  box-shadow: 0 8px 24px rgb(132 12 218 / 0.35);
}

Dark Violet
#840cda  rgb(132, 12, 218)  hsl(275, 90%, 45%)  Dark Violet
#62da0c  rgb(98, 218, 12)  hsl(95, 90%, 45%)  Lime Green
#da840c  rgb(218, 132, 12)  hsl(35, 90%, 45%)  Fulvous
#0cda84  rgb(12, 218, 132)  hsl(155, 90%, 45%)  Emerald