olivedrab — #6B8E23
#6B8E23
rgb(107, 142, 35) · hsl(80, 60%, 35%) · CSS keyword olivedrab
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| olivedrab on white | 3.81:1 | — | AA |
| olivedrab on black | 5.52:1 | AA | AA |
As a background, olivedrab takes black text: 5.52:1 against 3.81:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: olivedrab;
color: #6b8e23;
color: rgb(107 142 35);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to olivedrab
- olive — #808000
- darkolivegreen — #556B2F
- gray — #808080
- dimgray — #696969
- seagreen — #2E8B57
- slategray — #708090
Frequently asked questions
What is the hex code for olivedrab?
The hex code for olivedrab is #6B8E23 — RGB 107, 142, 35.
Can I use olivedrab for text?
Only for large text. olivedrab reaches 3.81:1 against white — enough for the 3:1 of headings at 24px or 18.5px bold, short of the 4.5:1 body text needs.
Should text on olivedrab be black or white?
Black — 5.52:1 against 3.81:1 the other way.
Other named colours
- orange — #FFA500
- orangered — #FF4500
- orchid — #DA70D6
- palegoldenrod — #EEE8AA
- palegreen — #98FB98
- paleturquoise — #AFEEEE
- palevioletred — #DB7093
- papayawhip — #FFEFD5
- peachpuff — #FFDAB9
- peru — #CD853F
- pink — #FFC0CB
- plum — #DDA0DD
#6B8E23 in full — tints, shades and harmonies · All named colours · Colour reference