#5A42E5

#5a42e5 ≈ Majorelle Blue

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#5a42e5 is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 35.29% red, 25.88% green and 89.8% blue; printed in CMYK it uses 60.7% cyan, 71.18% magenta, 0% yellow and 10.2% black. Its hue angle is 248.83°, with 75.81% saturation and 57.84% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and brand accents. White text on this color reaches a contrast ratio of 6.28:1 (WCAG AA). The closest named color is Majorelle Blue (#6050dc), ΔE 3.54.

Description generated from the measured properties of this color.

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

Readable text 6.28:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.35:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #606060 ≈ 0.003% of males
Achromatomaly #5e56a6 ≈ 0.001% of males
Protanopia #0066ea ≈ 1.01% of males
Deuteranopia #005ae2 ≈ 1.27% of males
Tritanopia #006f8f ≈ 0.0001% of males
Protanomaly #005ae8 ≈ 1.08% of males
Deuteranomaly #0051e3 ≈ 4.63% of males
Tritanomaly #3260b8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a42e5 {
  color: #5a42e5;
}
Background
.bg-5a42e5 {
  background-color: #5a42e5;
  color: #ffffff;
}
Border
.border-5a42e5 {
  border: 2px solid #5a42e5;
}
CSS variables
:root {
  --color-primary: #5a42e5;
  --color-primary-rgb: 90 66 229;
  --color-primary-hsl: 249 76% 58%;
}
Gradient
.gradient-5a42e5 {
  background: linear-gradient(135deg, #5a42e5, #ab42e5);
}
Colored shadow
.shadow-5a42e5 {
  box-shadow: 0 8px 24px rgb(90 66 229 / 0.35);
}

Majorelle Blue
#5a42e5  rgb(90, 66, 229)  hsl(249, 76%, 58%)  Majorelle Blue
#cde542  rgb(205, 229, 66)  hsl(69, 76%, 58%)  Pear
#e55a42  rgb(229, 90, 66)  hsl(9, 76%, 58%)  Cinnabar
#42e55a  rgb(66, 229, 90)  hsl(129, 76%, 58%)  Malachite