#540EF4

#540ef4 ≈ Han Purple

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

#540ef4 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.49% green and 95.69% blue; printed in CMYK it uses 65.57% cyan, 94.26% magenta, 0% yellow and 4.31% black. Its hue angle is 258.26°, with 91.27% saturation and 50.59% 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.65:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 1.19.

Description generated from the measured properties of this color.

Conversions of #540ef4 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.0873

Readable text 7.65:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.75:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #535353 ≈ 0.003% of males
Achromatomaly #5442ac ≈ 0.001% of males
Protanopia #005af9 ≈ 1.01% of males
Deuteranopia #004bf1 ≈ 1.27% of males
Tritanopia #006590 ≈ 0.0001% of males
Protanomaly #0047f7 ≈ 1.08% of males
Deuteranomaly #003bf2 ≈ 4.63% of males
Tritanomaly #1050c0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Han Purple
#540ef4  rgb(84, 14, 244)  hsl(258, 91%, 51%)  Han Purple
#aef40e  rgb(174, 244, 14)  hsl(78, 91%, 51%)  Spring Bud
#f4540e  rgb(244, 84, 14)  hsl(18, 91%, 51%)  Tangelo
#0ef454  rgb(14, 244, 84)  hsl(138, 91%, 51%)  Spring Green