#512FEF

#512fef ≈ Han Purple

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

#512fef is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 31.76% red, 18.43% green and 93.73% blue; printed in CMYK it uses 66.11% cyan, 80.33% magenta, 0% yellow and 6.27% black. Its hue angle is 250.62°, with 85.71% saturation and 56.08% 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.99:1 (WCAG AA). The closest named color is Han Purple (#5218fa), ΔE 2.58.

Description generated from the measured properties of this color.

Conversions of #512fef 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.1001

Readable text 6.99:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #595959 ≈ 0.003% of males
Achromatomaly #564cab ≈ 0.001% of males
Protanopia #0060f4 ≈ 1.01% of males
Deuteranopia #0051ec ≈ 1.27% of males
Tritanopia #006b91 ≈ 0.0001% of males
Protanomaly #0051f2 ≈ 1.08% of males
Deuteranomaly #0046ed ≈ 4.63% of males
Tritanomaly #0359be ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-512fef {
  color: #512fef;
}
Background
.bg-512fef {
  background-color: #512fef;
  color: #ffffff;
}
Border
.border-512fef {
  border: 2px solid #512fef;
}
CSS variables
:root {
  --color-primary: #512fef;
  --color-primary-rgb: 81 47 239;
  --color-primary-hsl: 251 86% 56%;
}
Gradient
.gradient-512fef {
  background: linear-gradient(135deg, #512fef, #b12fef);
}
Colored shadow
.shadow-512fef {
  box-shadow: 0 8px 24px rgb(81 47 239 / 0.35);
}

Han Purple
#512fef  rgb(81, 47, 239)  hsl(251, 86%, 56%)  Han Purple
#cdef2f  rgb(205, 239, 47)  hsl(71, 86%, 56%)  Pear
#ef512f  rgb(239, 81, 47)  hsl(11, 86%, 56%)  Coquelicot
#2fef51  rgb(47, 239, 81)  hsl(131, 86%, 56%)  Malachite