#540DAD

#540dad ≈ Medium Blue

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

#540dad 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.1% green and 67.84% blue; printed in CMYK it uses 51.45% cyan, 92.49% magenta, 0% yellow and 32.16% black. Its hue angle is 266.63°, with 86.02% saturation and 36.47% 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.3:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 6.52.

Description generated from the measured properties of this color.

Conversions of #540dad 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.0519

Readable text 10.3:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.04:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #404040 ≈ 0.003% of males
Achromatomaly #49337b ≈ 0.001% of males
Protanopia #0042b1 ≈ 1.01% of males
Deuteranopia #003daa ≈ 1.27% of males
Tritanopia #364465 ≈ 0.0001% of males
Protanomaly #0034af ≈ 1.08% of males
Deuteranomaly #0030ab ≈ 4.63% of males
Tritanomaly #443688 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540dad {
  color: #540dad;
}
Background
.bg-540dad {
  background-color: #540dad;
  color: #ffffff;
}
Border
.border-540dad {
  border: 2px solid #540dad;
}
CSS variables
:root {
  --color-primary: #540dad;
  --color-primary-rgb: 84 13 173;
  --color-primary-hsl: 267 86% 36%;
}
Gradient
.gradient-540dad {
  background: linear-gradient(135deg, #540dad, #a40dad);
}
Colored shadow
.shadow-540dad {
  box-shadow: 0 8px 24px rgb(84 13 173 / 0.35);
}

Medium Blue
#540dad  rgb(84, 13, 173)  hsl(267, 86%, 36%)  Medium Blue
#66ad0d  rgb(102, 173, 13)  hsl(87, 86%, 36%)  Kelly Green
#ad540d  rgb(173, 84, 13)  hsl(27, 86%, 36%)  Sienna
#0dad54  rgb(13, 173, 84)  hsl(147, 86%, 36%)  Medium Sea Green