#5F22CC

#5f22cc ≈ Han Purple

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

#5f22cc is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 37.25% red, 13.33% green and 80% blue; printed in CMYK it uses 53.43% cyan, 83.33% magenta, 0% yellow and 20% black. Its hue angle is 261.53°, with 71.43% saturation and 46.67% 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 8.12:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 5.24.

Description generated from the measured properties of this color.

Conversions of #5f22cc 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.0794

Readable text 8.12:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.59:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #505050 ≈ 0.003% of males
Achromatomaly #564292 ≈ 0.001% of males
Protanopia #0053d0 ≈ 1.01% of males
Deuteranopia #004cc9 ≈ 1.27% of males
Tritanopia #34577a ≈ 0.0001% of males
Protanomaly #0044cf ≈ 1.08% of males
Deuteranomaly #003fca ≈ 4.63% of males
Tritanomaly #4947a1 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Han Purple
#5f22cc  rgb(95, 34, 204)  hsl(262, 71%, 47%)  Han Purple
#8fcc22  rgb(143, 204, 34)  hsl(82, 71%, 47%)  Yellow Green
#cc5f22  rgb(204, 95, 34)  hsl(22, 71%, 47%)  Burnt Orange
#22cc5f  rgb(34, 204, 95)  hsl(142, 71%, 47%)  Malachite