#5128FF

#5128ff ≈ Han Purple

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

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

Description generated from the measured properties of this color.

Conversions of #5128ff 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.1049

Readable text 6.78:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.1:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5b5b5b ≈ 0.003% of males
Achromatomaly #574cb5 ≈ 0.001% of males
Protanopia #0063ff ≈ 1.01% of males
Deuteranopia #0052fb ≈ 1.27% of males
Tritanopia #007099 ≈ 0.0001% of males
Protanomaly #0052ff ≈ 1.08% of males
Deuteranomaly #0045fd ≈ 4.63% of males
Tritanomaly #005bca ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Han Purple
#5128ff  rgb(81, 40, 255)  hsl(251, 100%, 58%)  Han Purple
#d6ff28  rgb(214, 255, 40)  hsl(71, 100%, 58%)  Electric Lime
#ff5128  rgb(255, 81, 40)  hsl(11, 100%, 58%)  Orange Red
#28ff51  rgb(40, 255, 81)  hsl(131, 100%, 58%)  Lime