#540CDF

#540cdf ≈ Ultramarine

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

#540cdf 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 87.45% blue; printed in CMYK it uses 62.33% cyan, 94.62% magenta, 0% yellow and 12.55% black. Its hue angle is 260.47°, with 89.79% saturation and 46.08% 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 8.42:1 (WCAG AAA). The closest named color is Ultramarine (#3f00ff), ΔE 3.47.

Description generated from the measured properties of this color.

Conversions of #540cdf into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6600cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0748

Readable text 8.42:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.5:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4d4d4d ≈ 0.003% of males
Achromatomaly #503d9e ≈ 0.001% of males
Protanopia #0053e4 ≈ 1.01% of males
Deuteranopia #0047dc ≈ 1.27% of males
Tritanopia #005b83 ≈ 0.0001% of males
Protanomaly #0041e2 ≈ 1.08% of males
Deuteranomaly #0037dd ≈ 4.63% of males
Tritanomaly #2a48b0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540cdf {
  color: #540cdf;
}
Background
.bg-540cdf {
  background-color: #540cdf;
  color: #ffffff;
}
Border
.border-540cdf {
  border: 2px solid #540cdf;
}
CSS variables
:root {
  --color-primary: #540cdf;
  --color-primary-rgb: 84 12 223;
  --color-primary-hsl: 260 90% 46%;
}
Gradient
.gradient-540cdf {
  background: linear-gradient(135deg, #540cdf, #bd0cdf);
}
Colored shadow
.shadow-540cdf {
  box-shadow: 0 8px 24px rgb(84 12 223 / 0.35);
}

Ultramarine
#540cdf  rgb(84, 12, 223)  hsl(260, 90%, 46%)  Ultramarine
#97df0c  rgb(151, 223, 12)  hsl(80, 90%, 46%)  Yellow Green
#df540c  rgb(223, 84, 12)  hsl(20, 90%, 46%)  Flame
#0cdf54  rgb(12, 223, 84)  hsl(140, 90%, 46%)  Malachite