#540CA8

#540ca8 ≈ Indigo

  • violet
  • Lightness: low
  • Saturation: strong
  • Cool

#540ca8 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 4.71% green and 65.88% blue; printed in CMYK it uses 50% cyan, 92.86% magenta, 0% yellow and 34.12% black. Its hue angle is 267.69°, with 86.67% saturation and 35.29% 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 10.53:1 (WCAG AAA). The closest named color is Indigo (#4b0082), ΔE 5.88.

Description generated from the measured properties of this color.

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

Readable text 10.53:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.99:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3f3f3f ≈ 0.003% of males
Achromatomaly #483278 ≈ 0.001% of males
Protanopia #0040ac ≈ 1.01% of males
Deuteranopia #003ca5 ≈ 1.27% of males
Tritanopia #394262 ≈ 0.0001% of males
Protanomaly #0033aa ≈ 1.08% of males
Deuteranomaly #0b30a6 ≈ 4.63% of males
Tritanomaly #453484 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540ca8 {
  color: #540ca8;
}
Background
.bg-540ca8 {
  background-color: #540ca8;
  color: #ffffff;
}
Border
.border-540ca8 {
  border: 2px solid #540ca8;
}
CSS variables
:root {
  --color-primary: #540ca8;
  --color-primary-rgb: 84 12 168;
  --color-primary-hsl: 268 87% 35%;
}
Gradient
.gradient-540ca8 {
  background: linear-gradient(135deg, #540ca8, #a20ca8);
}
Colored shadow
.shadow-540ca8 {
  box-shadow: 0 8px 24px rgb(84 12 168 / 0.35);
}

Indigo
#540ca8  rgb(84, 12, 168)  hsl(268, 87%, 35%)  Indigo
#60a80c  rgb(96, 168, 12)  hsl(88, 87%, 35%)  Kelly Green
#a8540c  rgb(168, 84, 12)  hsl(28, 87%, 35%)  Sienna
#0ca854  rgb(12, 168, 84)  hsl(148, 87%, 35%)  Jade