#5A2DF2

#5a2df2 ≈ Han Purple

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

#5a2df2 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 35.29% red, 17.65% green and 94.9% blue; printed in CMYK it uses 62.81% cyan, 81.4% magenta, 0% yellow and 5.1% black. Its hue angle is 253.71°, with 88.34% saturation and 56.27% 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.79:1 (WCAG AA). The closest named color is Han Purple (#5218fa), ΔE 2.48.

Description generated from the measured properties of this color.

Conversions of #5a2df2 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.1046

Readable text 6.79:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.09:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5b5b5b ≈ 0.003% of males
Achromatomaly #5b4dad ≈ 0.001% of males
Protanopia #0061f7 ≈ 1.01% of males
Deuteranopia #0054ef ≈ 1.27% of males
Tritanopia #006b92 ≈ 0.0001% of males
Protanomaly #0051f5 ≈ 1.08% of males
Deuteranomaly #0047f0 ≈ 4.63% of males
Tritanomaly #2859c0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a2df2 {
  color: #5a2df2;
}
Background
.bg-5a2df2 {
  background-color: #5a2df2;
  color: #ffffff;
}
Border
.border-5a2df2 {
  border: 2px solid #5a2df2;
}
CSS variables
:root {
  --color-primary: #5a2df2;
  --color-primary-rgb: 90 45 242;
  --color-primary-hsl: 254 88% 56%;
}
Gradient
.gradient-5a2df2 {
  background: linear-gradient(135deg, #5a2df2, #bd2df2);
}
Colored shadow
.shadow-5a2df2 {
  box-shadow: 0 8px 24px rgb(90 45 242 / 0.35);
}

Han Purple
#5a2df2  rgb(90, 45, 242)  hsl(254, 88%, 56%)  Han Purple
#c5f22d  rgb(197, 242, 45)  hsl(74, 88%, 56%)  Electric Lime
#f25a2d  rgb(242, 90, 45)  hsl(14, 88%, 56%)  Flame
#2df25a  rgb(45, 242, 90)  hsl(134, 88%, 56%)  Spring Green