#840ECB

#840ecb ≈ Dark Violet

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

#840ecb is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 51.76% red, 5.49% green and 79.61% blue; printed in CMYK it uses 34.98% cyan, 93.1% magenta, 0% yellow and 20.39% black. Its hue angle is 277.46°, with 87.1% saturation and 42.55% 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 7.23:1 (WCAG AAA). The closest named color is Dark Violet (#9400d3), ΔE 2.7.

Description generated from the measured properties of this color.

Conversions of #840ecb 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.0953

Readable text 7.23:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.91:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #575757 ≈ 0.003% of males
Achromatomaly #6c4594 ≈ 0.001% of males
Protanopia #0054cf ≈ 1.01% of males
Deuteranopia #0057c8 ≈ 1.27% of males
Tritanopia #764d77 ≈ 0.0001% of males
Protanomaly #3a42ce ≈ 1.08% of males
Deuteranomaly #4745c9 ≈ 4.63% of males
Tritanomaly #7c3da0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-840ecb {
  color: #840ecb;
}
Background
.bg-840ecb {
  background-color: #840ecb;
  color: #ffffff;
}
Border
.border-840ecb {
  border: 2px solid #840ecb;
}
CSS variables
:root {
  --color-primary: #840ecb;
  --color-primary-rgb: 132 14 203;
  --color-primary-hsl: 277 87% 43%;
}
Gradient
.gradient-840ecb {
  background: linear-gradient(135deg, #840ecb, #cb0eb4);
}
Colored shadow
.shadow-840ecb {
  box-shadow: 0 8px 24px rgb(132 14 203 / 0.35);
}

Dark Violet
#840ecb  rgb(132, 14, 203)  hsl(277, 87%, 43%)  Dark Violet
#55cb0e  rgb(85, 203, 14)  hsl(97, 87%, 43%)  Lime Green
#cb840e  rgb(203, 132, 14)  hsl(37, 87%, 43%)  Fulvous
#0ecb84  rgb(14, 203, 132)  hsl(157, 87%, 43%)  Emerald