#540FFF

#540fff ≈ Han Purple

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

#540fff 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 100% blue; printed in CMYK it uses 67.06% cyan, 94.12% magenta, 0% yellow and 0% black. Its hue angle is 257.25°, with 100% saturation and 52.94% 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.27:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.66.

Description generated from the measured properties of this color.

Conversions of #540fff 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.0945

Readable text 7.27:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.89:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #575757 ≈ 0.003% of males
Achromatomaly #5644b4 ≈ 0.001% of males
Protanopia #005eff ≈ 1.01% of males
Deuteranopia #004efb ≈ 1.27% of males
Tritanopia #006a97 ≈ 0.0001% of males
Protanomaly #004bff ≈ 1.08% of males
Deuteranomaly #003dfd ≈ 4.63% of males
Tritanomaly #0054c9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540fff {
  color: #540fff;
}
Background
.bg-540fff {
  background-color: #540fff;
  color: #ffffff;
}
Border
.border-540fff {
  border: 2px solid #540fff;
}
CSS variables
:root {
  --color-primary: #540fff;
  --color-primary-rgb: 84 15 255;
  --color-primary-hsl: 257 100% 53%;
}
Gradient
.gradient-540fff {
  background: linear-gradient(135deg, #540fff, #cc0fff);
}
Colored shadow
.shadow-540fff {
  box-shadow: 0 8px 24px rgb(84 15 255 / 0.35);
}

Han Purple
#540fff  rgb(84, 15, 255)  hsl(257, 100%, 53%)  Han Purple
#baff0f  rgb(186, 255, 15)  hsl(77, 100%, 53%)  Spring Bud
#ff540f  rgb(255, 84, 15)  hsl(17, 100%, 53%)  International Orange
#0fff54  rgb(15, 255, 84)  hsl(137, 100%, 53%)  Lime