#540CFE

#540cfe ≈ Han Purple

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

#540cfe is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 4.71% green and 99.61% blue; printed in CMYK it uses 66.93% cyan, 95.28% magenta, 0% yellow and 0.39% black. Its hue angle is 257.85°, with 99.18% saturation and 52.16% 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.34:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.71.

Description generated from the measured properties of this color.

Conversions of #540cfe 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.093

Readable text 7.34:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.86:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #565656 ≈ 0.003% of males
Achromatomaly #5544b3 ≈ 0.001% of males
Protanopia #005eff ≈ 1.01% of males
Deuteranopia #004dfa ≈ 1.27% of males
Tritanopia #006a96 ≈ 0.0001% of males
Protanomaly #004aff ≈ 1.08% of males
Deuteranomaly #003dfc ≈ 4.63% of males
Tritanomaly #0053c8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540cfe {
  color: #540cfe;
}
Background
.bg-540cfe {
  background-color: #540cfe;
  color: #ffffff;
}
Border
.border-540cfe {
  border: 2px solid #540cfe;
}
CSS variables
:root {
  --color-primary: #540cfe;
  --color-primary-rgb: 84 12 254;
  --color-primary-hsl: 258 99% 52%;
}
Gradient
.gradient-540cfe {
  background: linear-gradient(135deg, #540cfe, #cd0cfe);
}
Colored shadow
.shadow-540cfe {
  box-shadow: 0 8px 24px rgb(84 12 254 / 0.35);
}

Han Purple
#540cfe  rgb(84, 12, 254)  hsl(258, 99%, 52%)  Han Purple
#b6fe0c  rgb(182, 254, 12)  hsl(78, 99%, 52%)  Spring Bud
#fe540c  rgb(254, 84, 12)  hsl(18, 99%, 52%)  International Orange
#0cfe54  rgb(12, 254, 84)  hsl(138, 99%, 52%)  Lime