graf1x

SlateGray and Yellow

Split-Complementary color combination with 3.78:1 contrast ratio

#708090
#FFFF00

Color Values

SlateGray
HEX #708090
RGB 112, 128, 144
HSL 210, 13%, 50%
Yellow
HEX #FFFF00
RGB 255, 255, 0
HSL 60, 100%, 50%

Harmony: Split-Complementary

This is a split-complementary pairing: one color paired with the two neighbors of its complement. It offers most of the contrast of a complementary scheme with less tension, making it easier to balance.

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

WCAG Contrast

3.78:1
SlateGray background with Yellow text
AA large text only

UI Preview

SlateGray surface

Sample text on a slategray 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: #708090;
  --color-b: #FFFF00;
  --color-a-rgb: 112, 128, 144;
  --color-b-rgb: 255, 255, 0;
}

JSON

{
  "name": "SlateGray and Yellow",
  "colors": [
    {
      "name": "SlateGray",
      "hex": "#708090",
      "rgb": [
        112,
        128,
        144
      ]
    },
    {
      "name": "Yellow",
      "hex": "#FFFF00",
      "rgb": [
        255,
        255,
        0
      ]
    }
  ],
  "harmony": "Split-Complementary",
  "contrastRatio": 3.78
}

Explore These Colors

Frequently Asked Questions

Do slategray and yellow go together?

Yes. SlateGray and Yellow form a split-complementary color combination. This is a split-complementary pairing: one color paired with the two neighbors of its complement. It offers most of the contrast of a complementary scheme with less tension, making it easier to balance. The pairing has a WCAG contrast ratio of 3.78:1, which passes AA for large text but not for body text.

What is the contrast ratio between slategray and yellow?

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

How do I use slategray 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. If one color is significantly darker, use it for text or structural elements and the lighter one for backgrounds. Test the result with our Contrast Checker if text is involved.

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

SlateGray has the hex code #708090 and RGB values rgb(112, 128, 144). 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.