#5F12DB

#5f12db ≈ Han Purple

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

#5f12db 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 85.88% blue; printed in CMYK it uses 56.62% cyan, 91.78% magenta, 0% yellow and 14.12% black. Its hue angle is 262.99°, with 84.81% saturation and 46.47% 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 8.09:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 3.85.

Description generated from the measured properties of this color.

Conversions of #5f12db 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.0798

Readable text 8.09:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.6:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #505050 ≈ 0.003% of males
Achromatomaly #563f9c ≈ 0.001% of males
Protanopia #0054e0 ≈ 1.01% of males
Deuteranopia #004bd8 ≈ 1.27% of males
Tritanopia #235a81 ≈ 0.0001% of males
Protanomaly #0043de ≈ 1.08% of males
Deuteranomaly #003bd9 ≈ 4.63% of males
Tritanomaly #4347ad ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Han Purple
#5f12db  rgb(95, 18, 219)  hsl(263, 85%, 46%)  Han Purple
#8edb12  rgb(142, 219, 18)  hsl(83, 85%, 46%)  Yellow Green
#db5f12  rgb(219, 95, 18)  hsl(23, 85%, 46%)  Persimmon
#12db5f  rgb(18, 219, 95)  hsl(143, 85%, 46%)  Malachite