DarkViolet and Yellow
Split-Complementary color combination with 6.11:1 contrast ratio
Color Values
#9400D3148, 0, 211282, 100%, 41%#FFFF00255, 255, 060, 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
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
}Related Combinations
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.