What is hex #8A8A22 color?

 
The hex code #8A8A22 is closest to the named color Olive Drab (#6B8E23).
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.

From a technical standpoint, this color is composed of 54% red, 54% green and 13% blue, resulting in rgb(138, 138, 34) and hsl(60, 60%, 34%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 0%, 75%, 46%).
In the HSV/HSB scale, #8A8A22 features a hue of 60°, 75% saturation, and 54% brightness.

Hex #8A8A22 Color Codes & Conversions

Closest Named Color
Olive Drab (#6B8E23)
Hex Code #8A8A22
Hex8 (RGBA Hex) #8A8A22FF
RGB (CSS) rgb(138, 138, 34)
RGBA (CSS) rgba(138, 138, 34, 1)
HSL (CSS) hsl(60, 60%, 34%)
HSLA (CSS) hsla(60, 60%, 34%, 1)
HSV / HSB (60°, 75%, 54%)
CMYK Values (0%, 0%, 75%, 46%)
OKLCH (Modern CSS) oklch(61.4% 0.121 109.5)
CIE-LAB (D65) 55.78, -12.71, 51.95
CIE XYZ 19.86, 23.70, 5.04
Decimal / Binary 9079330
10001010 10001010 00100010

Closest Standards & Equivalents

Closest Web Safe
#999933
Inverse Color
#7575DD
Complementary Color
#22228A
Closest Pantone®
Pantone 7747 C
Closest RAL
RAL 1027 [Curry]

#8A8A22 Grayscale Equivalents

Average
#676767
Lightness (Desaturation)
#565656
Weighted (BT601)
#7E7E7E
Luma (BT709)
#828282

WCAG 2.1 Color Contrast & Accessibility

Check how #8A8A22 complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.

White Text on #8A8A22

Sample preview of readable typography on top of #8A8A22.

Contrast Ratio: 3.66:1
AA Fail AAA Fail

Black Text on #8A8A22

Sample preview of readable typography on top of #8A8A22.

Contrast Ratio: 5.74:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #8A8A22

Preview #8A8A22 in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #8A8A22;
Typography Color Preview
color: #8A8A22;
Border & Shadow Preview
border: 2px solid #8A8A22;
CSS Custom Properties & Gradient
:root {
  --color-primary: #8A8A22;
  --color-primary-rgb: 138, 138, 34;
  --color-complementary: #22228A;
}
.btn-accent {
  background-color: #8A8A22;
  color: #000000;
}

Hex #8A8A22 Color Palettes

Complementary Palette

The complementary color of #8A8A22 is #22228A. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.

Analogous Palette

The analogous color scheme of #8A8A22 pairs with #8A5622 and #568A22, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #8A8A22 pairs with #56228A and #22568A, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #8A8A22 uses #8A228A and #228A8A, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #8A8A22 combines #228A8A, #22228A and #8A2222 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #8A8A22 pairs with #228A56, #22228A and #8A2256 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #8A8A22

Tints

Tints are created by mixing #8A8A22 with white, producing lighter variations.

Tones

Tones are created by mixing #8A8A22 with gray, softening saturation.

Shades

Shades result from mixing #8A8A22 with black, creating deeper variations.

Hex #8A8A22 in Programming & CSS Frameworks

Copy the exact syntax for #8A8A22 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #8A8A22
Tailwind CSS bg-[#8A8A22] text-[#8A8A22]
Java (AWT) new Color(138,138,34);
Python Color("#8A8A22")
.NET (C#) Color.FromArgb(255, 138,138,34);
Swift / iOS UIColor(red: 0.54, green: 0.54, blue: 0.13, alpha: 1)
Kotlin / Android Color.rgb(138, 138, 34)