graf1x

DarkViolet and Yellow

Split-Complementary color combination with 6.11:1 contrast ratio

#9400D3
#FFFF00

Color Values

DarkViolet
HEX #9400D3
RGB 148, 0, 211
HSL 282, 100%, 41%
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 DarkViolet and Yellow is 138 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

6.11:1
DarkViolet background with Yellow text
AA normal text, AAA large text

UI Preview

DarkViolet surface

Sample text on a darkviolet 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: #9400D3;
  --color-b: #FFFF00;
  --color-a-rgb: 148, 0, 211;
  --color-b-rgb: 255, 255, 0;
}

JSON

{
  "name": "DarkViolet and Yellow",
  "colors": [
    {
      "name": "DarkViolet",
      "hex": "#9400D3",
      "rgb": [
        148,
        0,
        211
      ]
    },
    {
      "name": "Yellow",
      "hex": "#FFFF00",
      "rgb": [
        255,
        255,
        0
      ]
    }
  ],
  "harmony": "Split-Complementary",
  "contrastRatio": 6.11
}

Explore These Colors

Frequently Asked Questions

Do darkviolet and yellow go together?

Yes. DarkViolet 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 6.11:1, which passes AA for large text and UI components.

What is the contrast ratio between darkviolet and yellow?

The WCAG 2.1 contrast ratio between DarkViolet (#9400D3) and Yellow (#FFFF00) is 6.11:1. This passes AA for normal text and AAA for large text.

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

DarkViolet has the hex code #9400D3 and RGB values rgb(148, 0, 211). 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.