#540AFA

#540afa ≈ Han Purple

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

#540afa is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 3.92% green and 98.04% blue; printed in CMYK it uses 66.4% cyan, 96% magenta, 0% yellow and 1.96% black. Its hue angle is 258.5°, with 96% saturation and 50.98% 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.5:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.87.

Description generated from the measured properties of this color.

Conversions of #540afa 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.09

Readable text 7.5:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.8:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #555555 ≈ 0.003% of males
Achromatomaly #5442b0 ≈ 0.001% of males
Protanopia #005cff ≈ 1.01% of males
Deuteranopia #004cf6 ≈ 1.27% of males
Tritanopia #006793 ≈ 0.0001% of males
Protanomaly #0048fd ≈ 1.08% of males
Deuteranomaly #003cf8 ≈ 4.63% of males
Tritanomaly #0052c5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540afa {
  color: #540afa;
}
Background
.bg-540afa {
  background-color: #540afa;
  color: #ffffff;
}
Border
.border-540afa {
  border: 2px solid #540afa;
}
CSS variables
:root {
  --color-primary: #540afa;
  --color-primary-rgb: 84 10 250;
  --color-primary-hsl: 259 96% 51%;
}
Gradient
.gradient-540afa {
  background: linear-gradient(135deg, #540afa, #cc0afa);
}
Colored shadow
.shadow-540afa {
  box-shadow: 0 8px 24px rgb(84 10 250 / 0.35);
}

Han Purple
#540afa  rgb(84, 10, 250)  hsl(259, 96%, 51%)  Han Purple
#b0fa0a  rgb(176, 250, 10)  hsl(79, 96%, 51%)  Spring Bud
#fa540a  rgb(250, 84, 10)  hsl(19, 96%, 51%)  International Orange
#0afa54  rgb(10, 250, 84)  hsl(139, 96%, 51%)  Lime