#5F04DF

#5f04df ≈ Han Purple

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

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

Description generated from the measured properties of this color.

Conversions of #5f04df 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.0785

Readable text 8.17:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.57:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4f4f4f ≈ 0.003% of males
Achromatomaly #563e9e ≈ 0.001% of males
Protanopia #0053e4 ≈ 1.01% of males
Deuteranopia #004adc ≈ 1.27% of males
Tritanopia #1c5a83 ≈ 0.0001% of males
Protanomaly #0041e2 ≈ 1.08% of males
Deuteranomaly #0039dd ≈ 4.63% of males
Tritanomaly #4146af ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f04df {
  color: #5f04df;
}
Background
.bg-5f04df {
  background-color: #5f04df;
  color: #ffffff;
}
Border
.border-5f04df {
  border: 2px solid #5f04df;
}
CSS variables
:root {
  --color-primary: #5f04df;
  --color-primary-rgb: 95 4 223;
  --color-primary-hsl: 265 96% 45%;
}
Gradient
.gradient-5f04df {
  background: linear-gradient(135deg, #5f04df, #cc04df);
}
Colored shadow
.shadow-5f04df {
  box-shadow: 0 8px 24px rgb(95 4 223 / 0.35);
}

Han Purple
#5f04df  rgb(95, 4, 223)  hsl(265, 96%, 45%)  Han Purple
#84df04  rgb(132, 223, 4)  hsl(85, 96%, 45%)  Yellow Green
#df5f04  rgb(223, 95, 4)  hsl(25, 96%, 45%)  Persimmon
#04df5f  rgb(4, 223, 95)  hsl(145, 96%, 45%)  Malachite