#5A42FF

#5a42ff ≈ Majorelle Blue

  • blue
  • Lightness: high
  • Saturation: strong
  • Cool

#5a42ff is a color from the blue family, with high lightness and strong saturation. In the RGB model it is made of 35.29% red, 25.88% green and 100% blue; printed in CMYK it uses 64.71% cyan, 74.12% magenta, 0% yellow and 0% black. Its hue angle is 247.62°, with 100% saturation and 62.94% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 5.74:1 (WCAG AA). The closest named color is Majorelle Blue (#6050dc), ΔE 4.76.

Description generated from the measured properties of this color.

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

Readable text 5.74:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.66:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #666666 ≈ 0.003% of males
Achromatomaly #615ab8 ≈ 0.001% of males
Protanopia #006dff ≈ 1.01% of males
Deuteranopia #005efc ≈ 1.27% of males
Tritanopia #00799e ≈ 0.0001% of males
Protanomaly #005fff ≈ 1.08% of males
Deuteranomaly #0054fd ≈ 4.63% of males
Tritanomaly #1667cc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a42ff {
  color: #5a42ff;
}
Background
.bg-5a42ff {
  background-color: #5a42ff;
  color: #ffffff;
}
Border
.border-5a42ff {
  border: 2px solid #5a42ff;
}
CSS variables
:root {
  --color-primary: #5a42ff;
  --color-primary-rgb: 90 66 255;
  --color-primary-hsl: 248 100% 63%;
}
Gradient
.gradient-5a42ff {
  background: linear-gradient(135deg, #5a42ff, #b942ff);
}
Colored shadow
.shadow-5a42ff {
  box-shadow: 0 8px 24px rgb(90 66 255 / 0.35);
}

Majorelle Blue
#5a42ff  rgb(90, 66, 255)  hsl(248, 100%, 63%)  Majorelle Blue
#e7ff42  rgb(231, 255, 66)  hsl(68, 100%, 63%)  Lemon Lime
#ff5a42  rgb(255, 90, 66)  hsl(8, 100%, 63%)  Tomato
#42ff5a  rgb(66, 255, 90)  hsl(128, 100%, 63%)  Neon Green