Yellow to RGB — Color Code

RGB

rgb(255, 255, 0)

Format Value
HEX #ffff00
RGB rgb(255, 255, 0)
HSL hsl(60, 100%, 50%)
CMYK cmyk(0%, 0%, 100%, 0%)

What is the RGB code for yellow?

The CSS color yellow in RGB format is rgb(255, 255, 0). Use this value directly in CSS, SVG, and most design tools.

How do I use yellow in CSS?

To apply yellow in CSS:

  • Text color: color: rgb(255, 255, 0);
  • Background: background-color: rgb(255, 255, 0);
  • Border: border-color: rgb(255, 255, 0);

What are all the color format values for yellow?

FormatValue
HEX#ffff00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 0%)

How do I convert yellow to RGB?

Select yellow from the color name list in our color converter. The RGB value — rgb(255, 255, 0) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does yellow belong to?

yellow belongs to the yellow color family. It is a medium, vivid color with HSL values: hue 60°, saturation 100%, lightness 50%.

How do I create lighter and darker shades of yellow?

Lighter variant (lightness 65%): #ffff4d. Darker variant (lightness 35%): #b3b300. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is RGB used for?

RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.