graf1x

MediumPurple and Yellow

Split-Complementary color combination with 3.50:1 contrast ratio

#9370DB
#FFFF00

Color Values

MediumPurple
HEX #9370DB
RGB 147, 112, 219
HSL 260, 60%, 65%
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 MediumPurple and Yellow is 160 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

3.50:1
MediumPurple background with Yellow text
AA large text only

UI Preview

MediumPurple surface

Sample text on a mediumpurple 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: #9370DB;
  --color-b: #FFFF00;
  --color-a-rgb: 147, 112, 219;
  --color-b-rgb: 255, 255, 0;
}

JSON

{
  "name": "MediumPurple and Yellow",
  "colors": [
    {
      "name": "MediumPurple",
      "hex": "#9370DB",
      "rgb": [
        147,
        112,
        219
      ]
    },
    {
      "name": "Yellow",
      "hex": "#FFFF00",
      "rgb": [
        255,
        255,
        0
      ]
    }
  ],
  "harmony": "Split-Complementary",
  "contrastRatio": 3.5
}

Explore These Colors

Frequently Asked Questions

Do mediumpurple and yellow go together?

Yes. MediumPurple 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.50:1, which passes AA for large text but not for body text.

What is the contrast ratio between mediumpurple and yellow?

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

How do I use mediumpurple 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 mediumpurple and yellow?

MediumPurple has the hex code #9370DB and RGB values rgb(147, 112, 219). 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.