CSS Named Color
Copy-ready color values
HEX
#808000RGB
rgb(128, 128, 0)HSL
hsl(60, 100%, 25%)HSV
hsv(60, 100%, 50%)CMYK approx.
cmyk(0, 0, 100, 50)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #808000 | |
| RGB | rgb(128, 128, 0) | |
| HSL | hsl(60, 100%, 25%) | |
| HSV | hsv(60, 100%, 50%) | |
| CMYK approx. | cmyk(0, 0, 100, 50) | |
| CSS keyword | olive |
Contrast and classification
DarkLightness4.20:1Contrast with white5.01:1Contrast with blackRed / OrangeColor family
Shade and tint preview
White 10%#8D8D1A
White 30%#A6A64D
White 70%#D9D9B3
White 90%#F2F2E6
Black 10%#737300
Black 30%#5A5A00
Black 70%#262600
Black 90%#0D0D00
Harmony palettes
Complementary
#7F7FFF#9E9EFFAnalogous
#80800F#80710FTriadic
#800080#008080Split complementary
#9696FF#6868D1Using Olive
Olive works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.
CSS, SCSS, and Tailwind examples
:root {
--color-olive: #808000;
}
.button-primary {
background: var(--color-olive);
color: #000000;
}
$olive: #808000;
// Tailwind arbitrary value
class="bg-[#808000] text-white"