Olive Drab color: hex #6b8e23, RGB and HSL
Olive Drab is the CSS keyword olivedrab, hex #6b8e23, rgb(107, 142, 35), hsl(80, 60%, 35%). It is a dark, vivid green in the greens family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.
- CSS name
- olivedrab
- Hex
- #6b8e23
- RGB
- rgb(107, 142, 35)
- HSL
- hsl(80, 60%, 35%)
- On white
- 3.81:1 — large text and UI only (3:1)
- On black
- 5.52:1 — passes AA for body text
.example {
color: olivedrab; /* keyword */
color: #6b8e23; /* hex */
color: rgb(107, 142, 35); /* rgb */
color: hsl(80, 60%, 35%); /* hsl */
}What colors go with olive drab
Each match keeps olive drab's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside olive drab as the primary; the harmony guides explain which rule suits which interface.
Complementary
The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.
Split-complementary
The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.
Triadic
Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.
Analogous
The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.
Tints and shades of olive drab
Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as olive drab — these are the hover, pressed, disabled and surface variants a single brand color needs.
Tints (lighter)
Shades (darker)
A UI color palette built from olive drab
The eight semantic roles an interface actually uses, derived from olive drab as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.
- primary
- #6b8e23
- secondary
- #23358e
- accent
- #7c238e
- background
- #fdfdfc
- surface
- #f5f7f3
- text
- #1d2211
- muted
- #7c8e57
- border
- #e8ecdf
- primary
- #a4d247
- secondary
- #475fd2
- accent
- #ba47d2
- background
- #171b0e
- surface
- #222815
- text
- #f5f6f3
- muted
- #abb696
- border
- #3e4927
Using olive drab in an interface
Green means success and 'on' — reserve one green for that job before you use another as a brand color. Sea green, forest green and teal are calm enough to lead a palette; the neon greens are for dark-mode accents and little else. Whichever role olive drab takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.
- What is the hex code for Olive Drab?
- Olive Drab is #6b8e23. In CSS the keyword olivedrab, the hex #6b8e23, rgb(107, 142, 35) and hsl(80, 60%, 35%) all paint the same color.
- What colors go with Olive Drab?
- Its complement is #46238e, the split-complementary pair is #23358e and #7c238e, the triadic partners are #236b8e and #8e236b, and the analogous neighbors are #8e7c23 and #358e23. In an interface, use Olive Drab for most colored elements and one of these for a single accent, at roughly an 80/20 split.
- What is the opposite of Olive Drab on the color wheel?
- The opposite (complementary) color is #46238e, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
- Can I use Olive Drab for text?
- Olive Drab as text on white has a contrast ratio of 3.81:1, which fails WCAG AA for body text (4.5:1) but passes for large text and UI components (3:1). On black it is 5.52:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.