#5A31EA

#5a31ea ≈ Han Purple

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#5a31ea is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 35.29% red, 19.22% green and 91.76% blue; printed in CMYK it uses 61.54% cyan, 79.06% magenta, 0% yellow and 8.24% black. Its hue angle is 253.3°, with 81.5% saturation and 55.49% 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 6.86:1 (WCAG AA). The closest named color is Han Purple (#5218fa), ΔE 3.08.

Description generated from the measured properties of this color.

Conversions of #5a31ea 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.1031

Readable text 6.86:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.06:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5a5a5a ≈ 0.003% of males
Achromatomaly #5a4da8 ≈ 0.001% of males
Protanopia #0060ef ≈ 1.01% of males
Deuteranopia #0054e7 ≈ 1.27% of males
Tritanopia #00698e ≈ 0.0001% of males
Protanomaly #0051ed ≈ 1.08% of males
Deuteranomaly #0048e8 ≈ 4.63% of males
Tritanomaly #2f58ba ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a31ea {
  color: #5a31ea;
}
Background
.bg-5a31ea {
  background-color: #5a31ea;
  color: #ffffff;
}
Border
.border-5a31ea {
  border: 2px solid #5a31ea;
}
CSS variables
:root {
  --color-primary: #5a31ea;
  --color-primary-rgb: 90 49 234;
  --color-primary-hsl: 253 82% 55%;
}
Gradient
.gradient-5a31ea {
  background: linear-gradient(135deg, #5a31ea, #b731ea);
}
Colored shadow
.shadow-5a31ea {
  box-shadow: 0 8px 24px rgb(90 49 234 / 0.35);
}

Han Purple
#5a31ea  rgb(90, 49, 234)  hsl(253, 82%, 55%)  Han Purple
#c1ea31  rgb(193, 234, 49)  hsl(73, 82%, 55%)  Pear
#ea5a31  rgb(234, 90, 49)  hsl(13, 82%, 55%)  Flame
#31ea5a  rgb(49, 234, 90)  hsl(133, 82%, 55%)  Malachite