Olive #808000
Olive is one of the named colours in CSS, written olive. Black text reaches 5.01:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | olive |
|---|---|
| HEX | #808000 |
| RGB | rgb(128 128 0) |
| HSL | hsl(60 100% 25%) |
| OKLCH | oklch(58.1% 0.127 109.8) |
| White text | 4.20:1 · body text AA Fail |
| Black text | 5.01:1 · body text AA Pass |
Colours that go with Olive
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Olive (#837E31), close. These are the colours Wada paired it with, ranked by their contrast with Olive itself.
| Colour | HEX | Contrast with Olive | Body text AA |
|---|---|---|---|
| Dull Violet Black | #1E0E3F | 4.21:1 | Fail |
| Sulpher Yellow | #F5ECC2 | 3.53:1 | Fail |
| Deep Slate Olive | #253122 | 3.25:1 | Fail |
| Seashell Pink | #FDD4BD | 3.06:1 | Fail |
| Yellow Green | #AFD472 | 2.49:1 | Fail |
| Corinthian Pink | #F8B6BA | 2.48:1 | Fail |
| Cobalt Green | #96D1AA | 2.40:1 | Fail |
| Pinkish Cinnamon | #EEB480 | 2.29:1 | Fail |
| Pale Burnt Lake | #802626 | 2.25:1 | Fail |
| Yellow Ocher | #E2B540 | 2.18:1 | Fail |
| Laelia Pink | #CA92A8 | 1.64:1 | Fail |
| Grenadine Pink | #F48067 | 1.62:1 | Fail |
| Spinel Red | #F27291 | 1.52:1 | Fail |
| Antwarp Blue | #007190 | 1.33:1 | Fail |
| Rosolanc Purple | #B73F74 | 1.26:1 | Fail |
Palettes with Olive
- Combination #96 Yellow Ocher · Olive
- Combination #201 Grenadine Pink · Olive · Cobalt Green
- Combination #254 Corinthian Pink · Sulpher Yellow · Olive · Laelia Pink
- Combination #258 Pale Burnt Lake · Pinkish Cinnamon · Olive · Antwarp Blue
- Combination #277 Spinel Red · Rosolanc Purple · Olive · Dull Violet Black
- Combination #310 Sulpher Yellow · Pinkish Cinnamon · Olive · Deep Slate Olive
- Combination #334 Seashell Pink · Olive · Yellow Green · Antwarp Blue
Shades and tints of Olive
Nine lightness steps in OKLCH that keep the hue of Olive. Chroma is reduced only where sRGB cannot show it.
- 100#FAFD95
- 200#EAEC85
- 300#D3D56E
- 400#B6B850
- 500#98982D
- 600#777700
- 700#595900
- 800#3D3D00
- 900#242400
:root {
--olive-100: #FAFD95;
--olive-200: #EAEC85;
--olive-300: #D3D56E;
--olive-400: #B6B850;
--olive-500: #98982D;
--olive-600: #777700;
--olive-700: #595900;
--olive-800: #3D3D00;
--olive-900: #242400;
}
Text that keeps Olive on screen
Text #000000 on #808000 reaches 5.01:1, which passes WCAG AA for body text. Check it on a dashboard