#5F4FA2

#5f4fa2 ≈ Royal Purple

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#5f4fa2 is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 37.25% red, 30.98% green and 63.53% blue; printed in CMYK it uses 41.36% cyan, 51.23% magenta, 0% yellow and 36.47% black. Its hue angle is 251.57°, with 34.44% saturation and 47.25% 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 6.72:1 (WCAG AA). The closest named color is Royal Purple (#7851a9), ΔE 5.42.

Description generated from the measured properties of this color.

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

Readable text 6.72:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.13:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5c5c5c ≈ 0.003% of males
Achromatomaly #5d577e ≈ 0.001% of males
Protanopia #2c5da5 ≈ 1.01% of males
Deuteranopia #2e5aa0 ≈ 1.27% of males
Tritanopia #4c6071 ≈ 0.0001% of males
Protanomaly #4658a4 ≈ 1.08% of males
Deuteranomaly #4656a1 ≈ 4.63% of males
Tritanomaly #545a87 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f4fa2 {
  color: #5f4fa2;
}
Background
.bg-5f4fa2 {
  background-color: #5f4fa2;
  color: #ffffff;
}
Border
.border-5f4fa2 {
  border: 2px solid #5f4fa2;
}
CSS variables
:root {
  --color-primary: #5f4fa2;
  --color-primary-rgb: 95 79 162;
  --color-primary-hsl: 252 34% 47%;
}
Gradient
.gradient-5f4fa2 {
  background: linear-gradient(135deg, #5f4fa2, #884fa2);
}
Colored shadow
.shadow-5f4fa2 {
  box-shadow: 0 8px 24px rgb(95 79 162 / 0.35);
}

Royal Purple
#5f4fa2  rgb(95, 79, 162)  hsl(252, 34%, 47%)  Royal Purple
#92a24f  rgb(146, 162, 79)  hsl(72, 34%, 47%)  Moss Green
#a25f4f  rgb(162, 95, 79)  hsl(12, 34%, 47%)  Redwood
#4fa25f  rgb(79, 162, 95)  hsl(132, 34%, 47%)  Shamrock Green