#542ACC

#542acc ≈ Han Purple

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

#542acc is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 32.94% red, 16.47% green and 80% blue; printed in CMYK it uses 58.82% cyan, 79.41% magenta, 0% yellow and 20% black. Its hue angle is 255.56°, with 65.85% saturation and 48.24% 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 8.14:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 5.2.

Description generated from the measured properties of this color.

Conversions of #542acc 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.079

Readable text 8.14:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.58:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4f4f4f ≈ 0.003% of males
Achromatomaly #514392 ≈ 0.001% of males
Protanopia #0054d0 ≈ 1.01% of males
Deuteranopia #004ac9 ≈ 1.27% of males
Tritanopia #055b7c ≈ 0.0001% of males
Protanomaly #0047cf ≈ 1.08% of males
Deuteranomaly #0040ca ≈ 4.63% of males
Tritanomaly #364ca2 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-542acc {
  color: #542acc;
}
Background
.bg-542acc {
  background-color: #542acc;
  color: #ffffff;
}
Border
.border-542acc {
  border: 2px solid #542acc;
}
CSS variables
:root {
  --color-primary: #542acc;
  --color-primary-rgb: 84 42 204;
  --color-primary-hsl: 256 66% 48%;
}
Gradient
.gradient-542acc {
  background: linear-gradient(135deg, #542acc, #a52acc);
}
Colored shadow
.shadow-542acc {
  box-shadow: 0 8px 24px rgb(84 42 204 / 0.35);
}

Han Purple
#542acc  rgb(84, 42, 204)  hsl(256, 66%, 48%)  Han Purple
#a2cc2a  rgb(162, 204, 42)  hsl(76, 66%, 48%)  Yellow Green
#cc542a  rgb(204, 84, 42)  hsl(16, 66%, 48%)  Sinopia
#2acc54  rgb(42, 204, 84)  hsl(136, 66%, 48%)  Malachite