Yellow — Color Codes & Palette
Color Codes
| Format | Value | |
|---|---|---|
| HEX | #FFFF00 | |
| RGB | rgb(255, 255, 0) | |
| HSL | hsl(60, 100%, 50%) |
Shades of Yellow
| #E6E600 | #CCCC00 | #B3B300 | #999900 | #808000 | #666600 | #4D4D00 | #333300 |
Tints of Yellow
| #FFFF1A | #FFFF33 | #FFFF4D | #FFFF66 | #FFFF80 | #FFFF99 | #FFFFB3 | #FFFFCC |
Color Pairings & Harmony
|
Complementary
#0000FF
|
Analogous +30°
#80FF00
|
Analogous −30°
#FF8000
|
Triadic +120°
#00FFFF
|
Triadic −120°
#FF00FF
|
Contrast & Accessibility (WCAG 2.1)
CSS Snippet
.element {
color: #FFFF00;
}
.element-bg {
background-color: #FFFF00;
color: #000000;
}
.element-border {
border: 2px solid #FFFF00;
}
About Yellow
Yellow is a medium color with vivid, highly saturated, defined by the hex code #FFFF00. Its exact color model values are rgb(255, 255, 0) in RGB and hsl(60, 100%, 50%) in HSL (hue 60°, saturation 100%, lightness 50%). On a white background the contrast ratio is 1.07:1 — Fail, and on black it is 19.56:1 — AAA pass for normal text. Use Yellow for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.
Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.
Open the Color Picker →