#5F12DF

#5f12df ≈ Han Purple

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

#5f12df is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 37.25% red, 7.06% green and 87.45% blue; printed in CMYK it uses 57.4% cyan, 91.93% magenta, 0% yellow and 12.55% black. Its hue angle is 262.54°, with 85.06% saturation and 47.25% 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.96:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 3.37.

Description generated from the measured properties of this color.

Conversions of #5f12df into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6600cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0819

Readable text 7.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.64:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #515151 ≈ 0.003% of males
Achromatomaly #57409f ≈ 0.001% of males
Protanopia #0055e4 ≈ 1.01% of males
Deuteranopia #004bdc ≈ 1.27% of males
Tritanopia #1c5b84 ≈ 0.0001% of males
Protanomaly #0044e2 ≈ 1.08% of males
Deuteranomaly #003cdd ≈ 4.63% of males
Tritanomaly #4149b0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f12df {
  color: #5f12df;
}
Background
.bg-5f12df {
  background-color: #5f12df;
  color: #ffffff;
}
Border
.border-5f12df {
  border: 2px solid #5f12df;
}
CSS variables
:root {
  --color-primary: #5f12df;
  --color-primary-rgb: 95 18 223;
  --color-primary-hsl: 263 85% 47%;
}
Gradient
.gradient-5f12df {
  background: linear-gradient(135deg, #5f12df, #c512df);
}
Colored shadow
.shadow-5f12df {
  box-shadow: 0 8px 24px rgb(95 18 223 / 0.35);
}

Han Purple
#5f12df  rgb(95, 18, 223)  hsl(263, 85%, 47%)  Han Purple
#92df12  rgb(146, 223, 18)  hsl(83, 85%, 47%)  Yellow Green
#df5f12  rgb(223, 95, 18)  hsl(23, 85%, 47%)  Persimmon
#12df5f  rgb(18, 223, 95)  hsl(143, 85%, 47%)  Malachite