#540A2B

#540a2b ≈ Tyrian Purple

  • rose
  • Lightness: very low
  • Saturation: moderate
  • Warm

#540a2b is a color from the rose family, with very low lightness and moderate saturation. In the RGB model it is made of 32.94% red, 3.92% green and 16.86% blue; printed in CMYK it uses 0% cyan, 88.1% magenta, 48.81% yellow and 67.06% black. Its hue angle is 333.24°, with 78.72% saturation and 18.43% lightness in HSL. It is a warm color, often associated with romance, playfulness and affection. Designers typically use it for food and restaurant brands, sales and promotions and luxury branding. White text on this color reaches a contrast ratio of 14.43:1 (WCAG AAA). The closest named color is Tyrian Purple (#66023c), ΔE 5.11.

Description generated from the measured properties of this color.

Conversions of #540a2b into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#660033
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0228

Readable text 14.43:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.46:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2a2a2a ≈ 0.003% of males
Achromatomaly #3f212a ≈ 0.001% of males
Protanopia #1c212c ≈ 1.01% of males
Deuteranopia #302f29 ≈ 1.27% of males
Tritanopia #5c0019 ≈ 0.0001% of males
Protanomaly #3a1a2b ≈ 1.08% of males
Deuteranomaly #41242a ≈ 4.63% of males
Tritanomaly #590321 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540a2b {
  color: #540a2b;
}
Background
.bg-540a2b {
  background-color: #540a2b;
  color: #ffffff;
}
Border
.border-540a2b {
  border: 2px solid #540a2b;
}
CSS variables
:root {
  --color-primary: #540a2b;
  --color-primary-rgb: 84 10 43;
  --color-primary-hsl: 333 79% 18%;
}
Gradient
.gradient-540a2b {
  background: linear-gradient(135deg, #540a2b, #540e0a);
}
Colored shadow
.shadow-540a2b {
  box-shadow: 0 8px 24px rgb(84 10 43 / 0.35);
}

Tyrian Purple
#540a2b  rgb(84, 10, 43)  hsl(333, 79%, 18%)  Tyrian Purple
#0a5433  rgb(10, 84, 51)  hsl(153, 79%, 18%)  British Racing Green
#2b540a  rgb(43, 84, 10)  hsl(93, 79%, 18%)  Lincoln Green
#0a2b54  rgb(10, 43, 84)  hsl(213, 79%, 18%)  Oxford Blue