#FFFF00 color (yellow)

#FFFF00 is rgb(255, 255, 0) in RGB and hsl(60, 100%, 50%) in HSL. It is exactly the CSS color yellow. Use black text on it (contrast 19.56:1).

#FFFF00yellow
HEX#FFFF00
Short HEX#FF0
RGBrgb(255, 255, 0)
RGB percentrgb(100%, 100%, 0%)
HSLhsl(60, 100%, 50%)
HSV / HSBhsv(60, 100%, 100%)
CMYKcmyk(0%, 0%, 100%, 0%)

Edit in the color converter → · Check contrast → · Shades →

About #FFFF00

#FFFF00 is a medium, vivid yellow with a hue angle of 60°. It belongs to the yellow family and reads as a warm color. In the RGB model red is the strongest channel at 255 (100%) and blue the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#FFFF00
Short HEX#FF0
RGBrgb(255, 255, 0)
RGB percentrgb(100%, 100%, 0%)
HSLhsl(60, 100%, 50%)
HSV / HSBhsv(60, 100%, 100%)
CMYKcmyk(0%, 0%, 100%, 0%)
CIELAB (D65)lab(97.1 -21.6 94.5)
Decimal16776960
Binary11111111 11111111 00000000

HEX FF FF 00 → 255, 255, 0 (each pair is a base-16 number: F×16 + F = 255)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #FFFF00

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #FFFF00RatioAA normalAA largeAAA normalAAA large
White text1.07:1FailFailFailFail
Black text19.56:1PassPassPassPass
White text on #FFFF00
Black text on #FFFF00
#FFFF00 text on white
#FFFF00 text on black

Relative luminance is 0.9278 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#fff400

Deuteranopia
#fffa31

Tritanopia
#ffeed9

Achromatopsia
#f7f7f7

People with red–green color blindness see this color almost unchanged (ΔE 1.8 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
yellow#ffff000
gold#ffd70011.6
khaki#f0e68c12.8
greenyellow#adff2f14.4

Nearby colors

CSS

.element {
  color: #ffff00;
  background-color: rgb(255, 255, 0);
  border: 1px solid hsl(60, 100%, 50%);
  box-shadow: 0 2px 8px rgb(255 255 0 / 50%);
}
:root { --brand: #ffff00; }

Frequently asked questions

What color is #FFFF00?
A medium vivid yellow in the yellow family. Closest CSS name: yellow.
What is #FFFF00 in RGB?
rgb(255, 255, 0): red 255, green 255, blue 0.
What is the complementary color of #FFFF00?
#0000FF, found by rotating the hue 180°.