#540FF7

#540ff7 ≈ Han Purple

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

#540ff7 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 5.88% green and 96.86% blue; printed in CMYK it uses 65.99% cyan, 93.93% magenta, 0% yellow and 3.14% black. Its hue angle is 257.84°, with 93.55% saturation and 51.37% 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 7.53:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.84.

Description generated from the measured properties of this color.

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

Readable text 7.53:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.79:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #545454 ≈ 0.003% of males
Achromatomaly #5443ae ≈ 0.001% of males
Protanopia #005cfd ≈ 1.01% of males
Deuteranopia #004cf3 ≈ 1.27% of males
Tritanopia #006792 ≈ 0.0001% of males
Protanomaly #0048fa ≈ 1.08% of males
Deuteranomaly #003cf5 ≈ 4.63% of males
Tritanomaly #0751c3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540ff7 {
  color: #540ff7;
}
Background
.bg-540ff7 {
  background-color: #540ff7;
  color: #ffffff;
}
Border
.border-540ff7 {
  border: 2px solid #540ff7;
}
CSS variables
:root {
  --color-primary: #540ff7;
  --color-primary-rgb: 84 15 247;
  --color-primary-hsl: 258 94% 51%;
}
Gradient
.gradient-540ff7 {
  background: linear-gradient(135deg, #540ff7, #c80ff7);
}
Colored shadow
.shadow-540ff7 {
  box-shadow: 0 8px 24px rgb(84 15 247 / 0.35);
}

Han Purple
#540ff7  rgb(84, 15, 247)  hsl(258, 94%, 51%)  Han Purple
#b2f70f  rgb(178, 247, 15)  hsl(78, 94%, 51%)  Spring Bud
#f7540f  rgb(247, 84, 15)  hsl(18, 94%, 51%)  Tangelo
#0ff754  rgb(15, 247, 84)  hsl(138, 94%, 51%)  Spring Green