Olive to RGB — Color Code

#808000
Format Value
HEX #808000
RGB rgb(128, 128, 0)
HSL hsl(60, 100%, 25.1%)
CMYK cmyk(0%, 0%, 100%, 49.8%)
HSV hsv(60, 100%, 50.2%)

olive color harmonies

Tints & shades of olive

Tints (lighter)

#8c8c17 #97972e #a3a346 #aeae5d #baba74 #c5c58b #d1d1a2 #dcdcb9 #e8e8d1 #f3f3e8

Shades (darker)

#747400 #696900 #5d5d00 #515100 #464600 #3a3a00 #2f2f00 #232300 #171700 #0c0c00

Contrast & accessibility

The quick brown fox

On white · 4.2:1 · AA Large

The quick brown fox

On black · 5.01:1 · AA

Recommended text color: #000000

Use olive in code

CSS color: #808000;
SCSS $color: #808000;
Tailwind bg-[#808000]
Swift UIColor(red: 0.502, green: 0.502, blue: 0.000, alpha: 1)
Android Color.parseColor("#808000")
Flutter Color(0xFF808000)

Colors similar to olive

Browse all Yellow colors →

What is the RGB code for olive?

The CSS color olive in RGB format is rgb(128, 128, 0). Use this value directly in CSS, SVG, and most design tools.

How do I use olive in CSS?

To apply olive in CSS:

  • Text color: color: rgb(128, 128, 0);
  • Background: background-color: rgb(128, 128, 0);
  • Border: border-color: rgb(128, 128, 0);

What are all the color format values for olive?

FormatValue
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25.1%)
CMYKcmyk(0%, 0%, 100%, 49.8%)

How do I convert olive to RGB?

Select olive from the color name list in our color converter. The RGB value — rgb(128, 128, 0) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does olive belong to?

olive belongs to the yellow color family. It is a dark, vivid color with HSL values: hue 60°, saturation 100%, lightness 25.1%.

How do I create lighter and darker shades of olive?

Lighter variant (lightness 40.1%): #cdcd00. Darker variant (lightness 10.100000000000001%): #343400. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is RGB used for?

RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.