#512AED

#512aed ≈ Han Purple

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

#512aed is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 31.76% red, 16.47% green and 92.94% blue; printed in CMYK it uses 65.82% cyan, 82.28% magenta, 0% yellow and 7.06% black. Its hue angle is 252°, with 84.42% saturation and 54.71% 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 7.23:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 2.01.

Description generated from the measured properties of this color.

Conversions of #512aed 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.0952

Readable text 7.23:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.9:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #575757 ≈ 0.003% of males
Achromatomaly #5549a9 ≈ 0.001% of males
Protanopia #005ef2 ≈ 1.01% of males
Deuteranopia #004fea ≈ 1.27% of males
Tritanopia #00698f ≈ 0.0001% of males
Protanomaly #004ef0 ≈ 1.08% of males
Deuteranomaly #0043eb ≈ 4.63% of males
Tritanomaly #0a56bc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-512aed {
  color: #512aed;
}
Background
.bg-512aed {
  background-color: #512aed;
  color: #ffffff;
}
Border
.border-512aed {
  border: 2px solid #512aed;
}
CSS variables
:root {
  --color-primary: #512aed;
  --color-primary-rgb: 81 42 237;
  --color-primary-hsl: 252 84% 55%;
}
Gradient
.gradient-512aed {
  background: linear-gradient(135deg, #512aed, #b32aed);
}
Colored shadow
.shadow-512aed {
  box-shadow: 0 8px 24px rgb(81 42 237 / 0.35);
}

Han Purple
#512aed  rgb(81, 42, 237)  hsl(252, 84%, 55%)  Han Purple
#c6ed2a  rgb(198, 237, 42)  hsl(72, 84%, 55%)  Electric Lime
#ed512a  rgb(237, 81, 42)  hsl(12, 84%, 55%)  Flame
#2aed51  rgb(42, 237, 81)  hsl(132, 84%, 55%)  Malachite