Olive drab color (#6B8E23)
#6B8E23 (Olive drab) is a dark green colour. It is rgb(107, 142, 35) in RGB and hsl(80, 60%, 35%) in HSL. Text in black reads better on it: the contrast is 5.52:1 against black and 3.81:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#6B8E23}:\quad R=\mathrm{6B}_{16}=107,\ G=\mathrm{8E}_{16}=142,\ B=\mathrm{23}_{16}=35 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
80^\circ + 180^\circ = 260^\circ ;\Rightarrow; \mathrm{#46238E} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#6B8E23} = \mathrm{rgb}(107, 142, 35) \]
\[ \mathrm{#6B8E23}:\quad R=\mathrm{6B}_{16}=107,\ G=\mathrm{8E}_{16}=142,\ B=\mathrm{23}_{16}=35 \]
\[ H=80^\circ,\quad S=60\%,\quad L=35\% \]
\[ 80^\circ + 180^\circ = 260^\circ ;\Rightarrow; \mathrm{#46238E} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.81:1\ \text{(on white)} \]Olive drab in every colour format
| Format | Value |
|---|---|
| HEX | #6B8E23 |
| RGB | rgb(107, 142, 35) |
| RGB (percent) | rgb(42.0%, 55.7%, 13.7%) |
| HSL | hsl(80, 60%, 35%) |
| HSV / HSB | hsv(80, 75%, 56%) |
| CMYK | cmyk(25%, 0%, 75%, 44%) |
| Decimal | 7048739 |
| Description | dark green |
| CSS name | olivedrab |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 3.81:1 | fail | pass | fail | fail |
| Black text | 5.52:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #121806 #242F0C #364712 #475F17 #59761D |
| This colour | #6B8E23 |
| Tints (mixed with white) | #84A148 #9CB46C #B5C791 #CED9B6 #E6ECDA |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #96840D | 25 |
| Deuteranopia | #91822D | 24 |
| Tritanopia | #708779 | 48 |
| Grayscale | #838383 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Olive | #808000 |
| Forest green | #228B22 |
| Dark olive green | #556B2F |
| Green | #008000 |
Questions
What is the RGB value of #6B8E23?
rgb(107, 142, 35): red 107, green 142, blue 35.
What is the HSL value of #6B8E23?
hsl(80, 60%, 35%): a hue of 80°, 60% saturation and 35% lightness.
What is the complementary colour of #6B8E23?
#46238E, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #9471DC.
Should I use white or black text on #6B8E23?
Black. White gives 3.81:1 and black 5.52:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #6B8E23?
cmyk(25%, 0%, 75%, 44%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #6B8E23 a named colour?
Yes: it is the CSS colour name "olivedrab".