#5F0CC2

#5f0cc2 ≈ Medium Blue

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

#5f0cc2 is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 37.25% red, 4.71% green and 76.08% blue; printed in CMYK it uses 51.03% cyan, 93.81% magenta, 0% yellow and 23.92% black. Its hue angle is 267.36°, with 88.35% saturation and 40.39% 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 9.06:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 6.98.

Description generated from the measured properties of this color.

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

Readable text 9.06:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.32:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #494949 ≈ 0.003% of males
Achromatomaly #52398a ≈ 0.001% of males
Protanopia #004bc6 ≈ 1.01% of males
Deuteranopia #0045bf ≈ 1.27% of males
Tritanopia #3d4d72 ≈ 0.0001% of males
Protanomaly #003bc5 ≈ 1.08% of males
Deuteranomaly #0036c0 ≈ 4.63% of males
Tritanomaly #4d3c98 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f0cc2 {
  color: #5f0cc2;
}
Background
.bg-5f0cc2 {
  background-color: #5f0cc2;
  color: #ffffff;
}
Border
.border-5f0cc2 {
  border: 2px solid #5f0cc2;
}
CSS variables
:root {
  --color-primary: #5f0cc2;
  --color-primary-rgb: 95 12 194;
  --color-primary-hsl: 267 88% 40%;
}
Gradient
.gradient-5f0cc2 {
  background: linear-gradient(135deg, #5f0cc2, #ba0cc2);
}
Colored shadow
.shadow-5f0cc2 {
  box-shadow: 0 8px 24px rgb(95 12 194 / 0.35);
}

Medium Blue
#5f0cc2  rgb(95, 12, 194)  hsl(267, 88%, 40%)  Medium Blue
#6fc20c  rgb(111, 194, 12)  hsl(87, 88%, 40%)  Kelly Green
#c25f0c  rgb(194, 95, 12)  hsl(27, 88%, 40%)  Burnt Orange
#0cc25f  rgb(12, 194, 95)  hsl(147, 88%, 40%)  Emerald