#5124FF

#5124ff ≈ Han Purple

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

#5124ff is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 31.76% red, 14.12% green and 100% blue; printed in CMYK it uses 68.24% cyan, 85.88% magenta, 0% yellow and 0% black. Its hue angle is 252.33°, with 100% saturation and 57.06% 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.89:1 (WCAG AA). The closest named color is Han Purple (#5218fa), ΔE 1.59.

Description generated from the measured properties of this color.

Conversions of #5124ff 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.1023

Readable text 6.89:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.05:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5a5a5a ≈ 0.003% of males
Achromatomaly #574ab5 ≈ 0.001% of males
Protanopia #0062ff ≈ 1.01% of males
Deuteranopia #0051fb ≈ 1.27% of males
Tritanopia #006f99 ≈ 0.0001% of males
Protanomaly #0050ff ≈ 1.08% of males
Deuteranomaly #0043fd ≈ 4.63% of males
Tritanomaly #005aca ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5124ff {
  color: #5124ff;
}
Background
.bg-5124ff {
  background-color: #5124ff;
  color: #ffffff;
}
Border
.border-5124ff {
  border: 2px solid #5124ff;
}
CSS variables
:root {
  --color-primary: #5124ff;
  --color-primary-rgb: 81 36 255;
  --color-primary-hsl: 252 100% 57%;
}
Gradient
.gradient-5124ff {
  background: linear-gradient(135deg, #5124ff, #bf24ff);
}
Colored shadow
.shadow-5124ff {
  box-shadow: 0 8px 24px rgb(81 36 255 / 0.35);
}

Han Purple
#5124ff  rgb(81, 36, 255)  hsl(252, 100%, 57%)  Han Purple
#d2ff24  rgb(210, 255, 36)  hsl(72, 100%, 57%)  Electric Lime
#ff5124  rgb(255, 81, 36)  hsl(12, 100%, 57%)  Orange Red
#24ff51  rgb(36, 255, 81)  hsl(132, 100%, 57%)  Lime