#512CD4

#512cd4 ≈ Han Purple

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

#512cd4 is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 31.76% red, 17.25% green and 83.14% blue; printed in CMYK it uses 61.79% cyan, 79.25% magenta, 0% yellow and 16.86% black. Its hue angle is 253.21°, with 66.14% saturation and 50.2% 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 7.89:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 4.37.

Description generated from the measured properties of this color.

Conversions of #512cd4 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.083

Readable text 7.89:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.66:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #515151 ≈ 0.003% of males
Achromatomaly #514598 ≈ 0.001% of males
Protanopia #0057d9 ≈ 1.01% of males
Deuteranopia #004bd1 ≈ 1.27% of males
Tritanopia #005f81 ≈ 0.0001% of males
Protanomaly #0049d7 ≈ 1.08% of males
Deuteranomaly #0041d2 ≈ 4.63% of males
Tritanomaly #2a4fa8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-512cd4 {
  color: #512cd4;
}
Background
.bg-512cd4 {
  background-color: #512cd4;
  color: #ffffff;
}
Border
.border-512cd4 {
  border: 2px solid #512cd4;
}
CSS variables
:root {
  --color-primary: #512cd4;
  --color-primary-rgb: 81 44 212;
  --color-primary-hsl: 253 66% 50%;
}
Gradient
.gradient-512cd4 {
  background: linear-gradient(135deg, #512cd4, #a52cd4);
}
Colored shadow
.shadow-512cd4 {
  box-shadow: 0 8px 24px rgb(81 44 212 / 0.35);
}

Han Purple
#512cd4  rgb(81, 44, 212)  hsl(253, 66%, 50%)  Han Purple
#afd42c  rgb(175, 212, 44)  hsl(73, 66%, 50%)  June Bud
#d4512c  rgb(212, 81, 44)  hsl(13, 66%, 50%)  Flame
#2cd451  rgb(44, 212, 81)  hsl(133, 66%, 50%)  Malachite