#8540AB

#8540ab ≈ Royal Purple

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#8540ab is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 52.16% red, 25.1% green and 67.06% blue; printed in CMYK it uses 22.22% cyan, 62.57% magenta, 0% yellow and 32.94% black. Its hue angle is 278.69°, with 45.53% saturation and 46.08% 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 brand accents. White text on this color reaches a contrast ratio of 6.33:1 (WCAG AA). The closest named color is Royal Purple (#7851a9), ΔE 5.11.

Description generated from the measured properties of this color.

Conversions of #8540ab into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#993399
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1159

Readable text 6.33:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.32:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #606060 ≈ 0.003% of males
Achromatomaly #705584 ≈ 0.001% of males
Protanopia #125cae ≈ 1.01% of males
Deuteranopia #3661a8 ≈ 1.27% of males
Tritanopia #81546f ≈ 0.0001% of males
Protanomaly #5852ad ≈ 1.08% of males
Deuteranomaly #6056a9 ≈ 4.63% of males
Tritanomaly #824d8b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-8540ab {
  color: #8540ab;
}
Background
.bg-8540ab {
  background-color: #8540ab;
  color: #ffffff;
}
Border
.border-8540ab {
  border: 2px solid #8540ab;
}
CSS variables
:root {
  --color-primary: #8540ab;
  --color-primary-rgb: 133 64 171;
  --color-primary-hsl: 279 46% 46%;
}
Gradient
.gradient-8540ab {
  background: linear-gradient(135deg, #8540ab, #ab409c);
}
Colored shadow
.shadow-8540ab {
  box-shadow: 0 8px 24px rgb(133 64 171 / 0.35);
}

Royal Purple
#8540ab  rgb(133, 64, 171)  hsl(279, 46%, 46%)  Royal Purple
#66ab40  rgb(102, 171, 64)  hsl(99, 46%, 46%)  Kelly Green
#ab8540  rgb(171, 133, 64)  hsl(39, 46%, 46%)  Dark Goldenrod
#40ab85  rgb(64, 171, 133)  hsl(159, 46%, 46%)  Jungle Green