Yellow Color Code: Hex #FFFF00
The hex code for Yellow is #FFFF00 (the CSS keyword yellow). Yellow RGB code: rgb(255, 255, 0). The xkcd color survey gives #FFFF14 instead, which looks almost the same; both codes are below with their source.
#FFFF00Top: the code browsers use#FFFF14Below: compare edge to edgeYellow color codes: each Yellow hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look the same
- Family
- yellow
- Contrast
- 1.07:1 with white, 19.56:1 with black
- CSS keyword
- yellow
- Character
- very light, vivid
- Readable text on it
- black (AA)
A very light, vivid yellow with a warm cast. In code, yellow gives exactly this web value. If you mean the color as people usually picture the name, the survey value #FFFF14 is closer: it is about as light and about as saturated.
Black text reads best on it; white text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Pastel Yellow, its closest named neighbour, it looks about as light, more vivid and warmer; beside Gold it looks lighter, more vivid and cooler. It is one of the 16 original HTML 4 color names. All three channels are multiples of 51, so it is in the old 216-color web-safe palette.
Colors that go with Yellow
Complementary: the opposite of Yellow
#FFFF00Black text 19.56:1#F4F3FFBlack text 19.11:1#FEFFA3Black text 20.05:1#97969EBlack text 7.17:1
Analogous
#FFF3DFBlack text 19.14:1#FFFF00Black text 19.56:1#E0FFD9Black text 19.48:1#FEFFBEBlack text 20.26:1
Triadic
#FFFF00Black text 19.56:1#E8F7FFBlack text 19.18:1#FFF0F6Black text 19.05:1#FEFFD7Black text 20.50:1
Monochrome
#484800White text 9.53:1#9E9E00Black text 7.34:1#FFFF00Black text 19.56:1#FEFF83Black text 19.85:1#FEFFBEBlack text 20.26:1
With neutrals
#FFFF00Black text 19.56:1#FEFFD7Black text 20.50:1#222200White text 16.19:1#A4A577Black text 8.23:1
Preview
Heading on Yellow
Body text on this color, 19.56:1.
ButtonHeading in Yellow
Text in this color on white, 1.07:1.
ButtonTints and shades
#FEFFD7#FEFFBE#FEFFA3#FEFF83#FEFF5C#FFFF00#CECE00#9E9E00#717100#484800#222200
WhiteYellowBlack
Similar named colors
Lists and sources
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: