#842FF2

#842ff2 ≈ Blue Violet

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

#842ff2 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 51.76% red, 18.43% green and 94.9% blue; printed in CMYK it uses 45.45% cyan, 80.58% magenta, 0% yellow and 5.1% black. Its hue angle is 266.15°, with 88.24% saturation and 56.67% 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 5.72:1 (WCAG AA). The closest named color is Blue Violet (#8a2be2), ΔE 2.38.

Description generated from the measured properties of this color.

Conversions of #842ff2 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.1335

Readable text 5.72:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.67:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #666666 ≈ 0.003% of males
Achromatomaly #7355b0 ≈ 0.001% of males
Protanopia #0067f7 ≈ 1.01% of males
Deuteranopia #0063ee ≈ 1.27% of males
Tritanopia #646893 ≈ 0.0001% of males
Protanomaly #2956f5 ≈ 1.08% of males
Deuteranomaly #3653f0 ≈ 4.63% of males
Tritanomaly #7257c0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-842ff2 {
  color: #842ff2;
}
Background
.bg-842ff2 {
  background-color: #842ff2;
  color: #ffffff;
}
Border
.border-842ff2 {
  border: 2px solid #842ff2;
}
CSS variables
:root {
  --color-primary: #842ff2;
  --color-primary-rgb: 132 47 242;
  --color-primary-hsl: 266 88% 57%;
}
Gradient
.gradient-842ff2 {
  background: linear-gradient(135deg, #842ff2, #e52ff2);
}
Colored shadow
.shadow-842ff2 {
  box-shadow: 0 8px 24px rgb(132 47 242 / 0.35);
}

Blue Violet
#842ff2  rgb(132, 47, 242)  hsl(266, 88%, 57%)  Blue Violet
#9df22f  rgb(157, 242, 47)  hsl(86, 88%, 57%)  Spring Bud
#f2842f  rgb(242, 132, 47)  hsl(26, 88%, 57%)  Cadmium Orange
#2ff284  rgb(47, 242, 132)  hsl(146, 88%, 57%)  Spring Green