#540FA2

#540fa2 ≈ Indigo

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

#540fa2 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 5.88% green and 63.53% blue; printed in CMYK it uses 48.15% cyan, 90.74% magenta, 0% yellow and 36.47% black. Its hue angle is 268.16°, with 83.05% saturation and 34.71% 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 corporate identities. White text on this color reaches a contrast ratio of 10.68:1 (WCAG AAA). The closest named color is Indigo (#4b0082), ΔE 5.18.

Description generated from the measured properties of this color.

Conversions of #540fa2 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.0484

Readable text 10.68:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.97:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3e3e3e ≈ 0.003% of males
Achromatomaly #483174 ≈ 0.001% of males
Protanopia #003fa6 ≈ 1.01% of males
Deuteranopia #003ca0 ≈ 1.27% of males
Tritanopia #3d405f ≈ 0.0001% of males
Protanomaly #0732a4 ≈ 1.08% of males
Deuteranomaly #1630a1 ≈ 4.63% of males
Tritanomaly #47327f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Indigo
#540fa2  rgb(84, 15, 162)  hsl(268, 83%, 35%)  Indigo
#5da20f  rgb(93, 162, 15)  hsl(88, 83%, 35%)  Olive Drab
#a2540f  rgb(162, 84, 15)  hsl(28, 83%, 35%)  Sienna
#0fa254  rgb(15, 162, 84)  hsl(148, 83%, 35%)  Shamrock Green