Xerobit

Yellow Hex Code and Color Values

Yellow (CSS keyword yellow) is #FFFF00: rgb(255, 255, 0), hsl(60, 100%, 50%).

Yellow: #FFFF00

  • Hex
    #FFFF00
  • RGB
    rgb(255, 255, 0)
  • HSL
    hsl(60, 100%, 50%)
  • OKLCH
    oklch(96.8% 0.2110 109.8)
  • CMYK
    0%, 0%, 100%, 0%
  • CSS name
    yellow

Where the name yellow comes from

yellow is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #FFFF00; CSS Color 4 says these came from the VGA palette.

Short form: #FF0.

Shades and tints of Yellow

  • 10% white #FFFF1A yellow; 10% black #E6E600 gold
  • 20% white #FFFF33 yellow; 20% black #CCCC00
  • 30% white #FFFF4D yellow; 30% black #B3B300
  • 40% white #FFFF66 yellow; 40% black #999900
  • 50% white #FFFF80 ; 50% black #808000 olive

Contrast of #FFFF00

Against white 1.07:1 (fails), against black 19.56:1 (passes AAA); black text reads better on Yellow. In HSV it is hsv(60, 100%, 100%).

Lightness rank 19 of 139; best partner black, 19.56:1.

Closest names to Yellow

Yellow has OKLCH hue 110 degrees.

NameHexOKLab distanceThan Yellow
greenyellow#ADFF2F0.098darker
gold#FFD7000.099darker
khaki#F0E68C0.115darker
palegreen#98FB980.136darker
palegoldenrod#EEE8AA0.140darker
chartreuse#7FFF000.143darker
lawngreen#7CFC000.147darker

Color harmony for Yellow

  • Complementary: #0000FF blue
  • Analogous: #FF8000 darkorange, #80FF00 chartreuse
  • Triadic: #00FFFF cyan, #FF00FF magenta
  • Split complementary: #0080FF dodgerblue, #8000FF

Yellow with color vision deficiency

  • Protanopia: #FFF400, like greenyellow (#ADFF2F), chartreuse (#7FFF00)
  • Deuteranopia: #FFFA31
  • Tritanopia: #FFEED9, like papayawhip (#FFEFD5), beige (#F5F5DC), lemonchiffon (#FFFACD)

FAQ

What is the hex code for Yellow?

#FFFF00, or the keyword yellow.

Which named color is closest to Yellow?

greenyellow (#ADFF2F), then gold and khaki.