#5C31CD

#5c31cd ≈ Han Purple

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

#5c31cd is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 36.08% red, 19.22% green and 80.39% blue; printed in CMYK it uses 55.12% cyan, 76.1% magenta, 0% yellow and 19.61% black. Its hue angle is 256.54°, with 61.42% saturation and 49.8% 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 brand accents. White text on this color reaches a contrast ratio of 7.56:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 5.32.

Description generated from the measured properties of this color.

Conversions of #5c31cd 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.0888

Readable text 7.56:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.78:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #545454 ≈ 0.003% of males
Achromatomaly #574894 ≈ 0.001% of males
Protanopia #0058d1 ≈ 1.01% of males
Deuteranopia #0050ca ≈ 1.27% of males
Tritanopia #2a5d7e ≈ 0.0001% of males
Protanomaly #004bd0 ≈ 1.08% of males
Deuteranomaly #0045cb ≈ 4.63% of males
Tritanomaly #434fa3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5c31cd {
  color: #5c31cd;
}
Background
.bg-5c31cd {
  background-color: #5c31cd;
  color: #ffffff;
}
Border
.border-5c31cd {
  border: 2px solid #5c31cd;
}
CSS variables
:root {
  --color-primary: #5c31cd;
  --color-primary-rgb: 92 49 205;
  --color-primary-hsl: 257 61% 50%;
}
Gradient
.gradient-5c31cd {
  background: linear-gradient(135deg, #5c31cd, #aa31cd);
}
Colored shadow
.shadow-5c31cd {
  box-shadow: 0 8px 24px rgb(92 49 205 / 0.35);
}

Han Purple
#5c31cd  rgb(92, 49, 205)  hsl(257, 61%, 50%)  Han Purple
#a2cd31  rgb(162, 205, 49)  hsl(77, 61%, 50%)  Yellow Green
#cd5c31  rgb(205, 92, 49)  hsl(17, 61%, 50%)  Flame
#31cd5c  rgb(49, 205, 92)  hsl(137, 61%, 50%)  Malachite