#797D2A

#797d2a ≈ Olive

  • yellow
  • Lightness: low
  • Saturation: moderate
  • Warm

#797d2a is a color from the yellow family, with low lightness and moderate saturation. In the RGB model it is made of 47.45% red, 49.02% green and 16.47% blue; printed in CMYK it uses 3.2% cyan, 0% magenta, 66.4% yellow and 50.98% black. Its hue angle is 62.89°, with 49.7% saturation and 32.75% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and corporate identities. Black text on this color reaches a contrast ratio of 4.78:1 (WCAG AA). The closest named color is Olive (#808000), ΔE 4.69.

Description generated from the measured properties of this color.

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

Readable text 4.39:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.78:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #787878 ≈ 0.003% of males
Achromatomaly #797a62 ≈ 0.001% of males
Protanopia #86771f ≈ 1.01% of males
Deuteranopia #87792f ≈ 1.27% of males
Tritanopia #81756c ≈ 0.0001% of males
Protanomaly #817a24 ≈ 1.08% of males
Deuteranomaly #817b2d ≈ 4.63% of males
Tritanomaly #7e7959 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-797d2a {
  color: #797d2a;
}
Background
.bg-797d2a {
  background-color: #797d2a;
  color: #000000;
}
Border
.border-797d2a {
  border: 2px solid #797d2a;
}
CSS variables
:root {
  --color-primary: #797d2a;
  --color-primary-rgb: 121 125 42;
  --color-primary-hsl: 63 50% 33%;
}
Gradient
.gradient-797d2a {
  background: linear-gradient(135deg, #797d2a, #507d2a);
}
Colored shadow
.shadow-797d2a {
  box-shadow: 0 8px 24px rgb(121 125 42 / 0.35);
}

Olive
#797d2a  rgb(121, 125, 42)  hsl(63, 50%, 33%)  Olive
#2e2a7d  rgb(46, 42, 125)  hsl(243, 50%, 33%)  Midnight Blue
#2a797d  rgb(42, 121, 125)  hsl(183, 50%, 33%)  Myrtle Green
#7d2a79  rgb(125, 42, 121)  hsl(303, 50%, 33%)  Byzantium