Olive drab #6B8E23
Olive drab is one of the named colours in CSS, written olivedrab. Black text reaches 5.52:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | olivedrab |
|---|---|
| HEX | #6B8E23 |
| RGB | rgb(107 142 35) |
| HSL | hsl(80 60% 35%) |
| OKLCH | oklch(59.9% 0.137 126.3) |
| White text | 3.81:1 · body text AA Fail |
| Black text | 5.52:1 · body text AA Pass |
Colours that go with Olive drab
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Oil Green (#819238), close. These are the colours Wada paired it with, ranked by their contrast with Olive drab itself.
| Colour | HEX | Contrast with Olive drab | Body text AA |
|---|---|---|---|
| Dark Tyrian Blue | #12354E | 3.35:1 | Fail |
| Sulpher Yellow | #F5ECC2 | 3.20:1 | Fail |
| Slate Color | #34454C | 2.63:1 | Fail |
| Light Glaucous Blue | #A5C8D1 | 2.13:1 | Fail |
| Vinaceous Cinnamon | #EEA78C | 1.91:1 | Fail |
| Carmine Red | #A62C37 | 1.82:1 | Fail |
| Coral Red | #F58E84 | 1.65:1 | Fail |
| Antwarp Blue | #007190 | 1.47:1 | Fail |
| Indian Lake | #C53C69 | 1.31:1 | Fail |
Palettes with Oil Green
Shades and tints of Olive drab
Nine lightness steps in OKLCH that keep the hue of Olive drab. Chroma is reduced only where sRGB cannot show it.
- 100#E8FFC9
- 200#CDF58E
- 300#B7DE77
- 400#9BC15A
- 500#7DA139
- 600#5D7F09
- 700#456000
- 800#2E4200
- 900#1A2700
:root {
--olivedrab-100: #E8FFC9;
--olivedrab-200: #CDF58E;
--olivedrab-300: #B7DE77;
--olivedrab-400: #9BC15A;
--olivedrab-500: #7DA139;
--olivedrab-600: #5D7F09;
--olivedrab-700: #456000;
--olivedrab-800: #2E4200;
--olivedrab-900: #1A2700;
}
Text that keeps Olive drab on screen
Text #000000 on #6B8E23 reaches 5.52:1, which passes WCAG AA for body text. Check it on a dashboard