Home·Colour name reference

Yellow

#FFFF00

HEX#FFFF00
RGB255, 255, 0
HSL60°, 100%, 50%
CMYK0%, 0%, 100%, 0%
Relative luminance0.93

Text contrast

Aa

On white

1.07:1 Below AA

Aa

On black

19.56:1 Passes AA

Colours that work with it

Complement

#0000FF

Analogous

#FF8000#80FF00

Triadic

#00FFFF#FF00FF

Shade scale

50100200300400500600700800

Seen with colour blindness

ProtanopiaDeuteranopiaTritanopia

How to read this

  • A hex code writes red, green and blue as two hexadecimal digits each. #ff0000 is red at full strength and the others at zero.
  • HSL states hue (0–360°), saturation and lightness. Nudging a colour brighter means changing one number, which is why it is easier to work with by hand.
  • Text contrast follows WCAG. Body-size text needs 4.5:1 or better, and 21:1 between white and black is the maximum possible.
  • The colour-blindness row computes how this colour appears under three types of colour vision deficiency — the reason never to encode information in colour alone.

Frequently asked questions

Q. What is the hex code for Yellow?

#FFFF00. That is 255, 255, 0 in RGB, and hue 60°, saturation 100%, lightness 50% in HSL.

Q. Should text on Yellow be white or black?

Black. Contrast against white is 1.07:1 and against black 19.56:1, so take the higher one if body-size text has to be readable.

Q. What is the complement of Yellow?

#0000FF, sitting 180° across the colour wheel. Side by side the two push against each other hardest, which makes it a good accent but tiring over large areas.

Q. Can I send these CMYK values straight to print?

The computed values are C 0% · M 0% · Y 100% · K 0%. Real printing depends on paper and ink, so check against the printer's swatch book when the colour matters.

Q. Is this colour distinguishable with colour blindness?

It appears as #FFFF3E with protanopia, #FFFF4D with deuteranopia and #FF6E79 with tritanopia. Where those values converge with another colour, add a shape or a label instead of relying on hue.

Nearby colours