Yellow — #FFFF00
The hex code for yellow is #FFFF00 — rgb(255, 255, 0), hsl(60, 100%, 50%). Use it in CSS as color: #FFFF00;.
Yellow is the brightest color the eye sees first. It is the color of sunshine, lemons, and warning signs — cheerful, but hard to read as text on white.
Yellow color codes — click to copy
#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)hsv(60, 100%, 100%)cmyk(0%, 0%, 100%, 0%)Shades, tints & tones of yellow
Click any swatch to copy it.
Yellow harmonies
Click a swatch to copy it.
Colors that go with yellow
| Color | Hex | |
|---|---|---|
| Black | #000000 | |
| Navy | #000080 | |
| Gray | #808080 | |
| Purple | #800080 |
Where yellow is used
Use yellow as an accent for energy and optimism, never as body text on a white background. Black text on yellow is one of the highest-contrast, most readable combinations there is.
What yellow is often associated with: Happiness, energy, optimism, and caution.
Contrast — can you read text on yellow?
White text on yellow scores 1.07:1
Normal text: AA Fail AAA Fail
Large text (18pt+, or 14pt bold+): AA Fail AAA Fail
Black text scores 19.56:1Normal text: AA Pass AAA Pass
Large text (18pt+, or 14pt bold+): AA Pass AAA Pass
Check any pair in the contrast checker →How yellow looks with color blindness
Simulated with the Machado matrices. Click a swatch to copy the simulated color.
Protanopia
Deuteranopia
Tritanopia
This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.
Frequently asked questions
What is the hex code for yellow?
The hex code for yellow is #FFFF00.
What is the RGB of yellow?
The RGB of yellow is rgb(255, 255, 0).
What colors go with yellow?
Colors that go well with yellow include black (#000000), navy (#000080), gray (#808080). See the pairings table on this page for the full list.
Is yellow a good color for a website?
Yellow works well as an accent or background — black text on it scores 19.56:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.
What does the color yellow mean?
Happiness, energy, optimism, and caution.
Related tools
Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker