#FFFF00

Yellow — Color Codes & Palette

#FFFF00  ·  rgb(255, 255, 0)  ·  hsl(60, 100%, 50%)

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)

vs. White (#FFFFFF)
1.07:1 — Fail
vs. Black (#000000)
19.56:1 — AAA pass for normal text

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 →

Frequently Asked Questions

What is the RGB value of Yellow?
The RGB value of Yellow (#FFFF00) is rgb(255, 255, 0). Red = rgb(255, 255, 0), representing the amounts of red, green, and blue light on a 0–255 scale.
Is Yellow accessible on a white background?
The contrast ratio of Yellow on white (#FFFFFF) is 1.07:1 — Fail. On black (#000000) the contrast ratio is 19.56:1 — AAA pass for normal text. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with Yellow?
Based on color theory, Yellow (hsl(60, 100%, 50%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.