#540FFB

#540ffb ≈ Han Purple

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

#540ffb 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 98.43% blue; printed in CMYK it uses 66.53% cyan, 94.02% magenta, 0% yellow and 1.57% black. Its hue angle is 257.54°, with 96.72% 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.4:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.58.

Description generated from the measured properties of this color.

Conversions of #540ffb 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.0919

Readable text 7.4:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.84:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #555555 ≈ 0.003% of males
Achromatomaly #5544b1 ≈ 0.001% of males
Protanopia #005dff ≈ 1.01% of males
Deuteranopia #004df7 ≈ 1.27% of males
Tritanopia #006994 ≈ 0.0001% of males
Protanomaly #004afe ≈ 1.08% of males
Deuteranomaly #003df9 ≈ 4.63% of males
Tritanomaly #0053c6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Han Purple
#540ffb  rgb(84, 15, 251)  hsl(258, 97%, 52%)  Han Purple
#b6fb0f  rgb(182, 251, 15)  hsl(78, 97%, 52%)  Spring Bud
#fb540f  rgb(251, 84, 15)  hsl(18, 97%, 52%)  International Orange
#0ffb54  rgb(15, 251, 84)  hsl(138, 97%, 52%)  Lime