graf1x

Olive and Yellow

Analogous color combination with 3.90:1 contrast ratio

#808010
#FFFF00

Color Values

Olive
HEX #808010
RGB 128, 128, 16
HSL 60, 78%, 28%
Yellow
HEX #FFFF00
RGB 255, 255, 0
HSL 60, 100%, 50%

Harmony: Analogous

These colors sit beside each other on the wheel, so the pairing feels calm and cohesive. Analogous schemes are easy on the eye and work well for gradients, backgrounds, and designs that want to feel settled rather than energetic.

The hue angle between Olive and Yellow is 0 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

3.90:1
Olive background with Yellow text
AA large text only

UI Preview

Olive surface

Sample text on a olive background demonstrates readability and visual hierarchy.

Yellow surface

Sample text on a yellow background demonstrates readability and visual hierarchy.

Design Tokens

CSS Variables

:root {
  --color-a: #808010;
  --color-b: #FFFF00;
  --color-a-rgb: 128, 128, 16;
  --color-b-rgb: 255, 255, 0;
}

JSON

{
  "name": "Olive and Yellow",
  "colors": [
    {
      "name": "Olive",
      "hex": "#808010",
      "rgb": [
        128,
        128,
        16
      ]
    },
    {
      "name": "Yellow",
      "hex": "#FFFF00",
      "rgb": [
        255,
        255,
        0
      ]
    }
  ],
  "harmony": "Analogous",
  "contrastRatio": 3.9
}

Explore These Colors

Frequently Asked Questions

Do olive and yellow go together?

Yes. Olive and Yellow form a analogous color combination. These colors sit beside each other on the wheel, so the pairing feels calm and cohesive. Analogous schemes are easy on the eye and work well for gradients, backgrounds, and designs that want to feel settled rather than energetic. The pairing has a WCAG contrast ratio of 3.90:1, which passes AA for large text but not for body text.

What is the contrast ratio between olive and yellow?

The WCAG 2.1 contrast ratio between Olive (#808010) and Yellow (#FFFF00) is 3.90:1. This passes AA for large text (18pt+ or 14pt+ bold) but not for normal-sized body text.

How do I use olive and yellow in design?

A safe starting point is the 60/30/10 rule: give one color about 60 percent of the surface area, the other about 30 percent, and reserve the remaining 10 percent for an accent or neutral. Because analogous colors blend naturally, you can use them in more equal proportions without visual conflict. Test the result with our Contrast Checker if text is involved.

What are the hex and RGB values for olive and yellow?

Olive has the hex code #808010 and RGB values rgb(128, 128, 16). Yellow has the hex code #FFFF00 and RGB values rgb(255, 255, 0). You can copy these directly into CSS or use the design tokens provided on this page.