YELLOW

Yellow

No. 021

#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)

Yellow is #FFFF00, rgb(255, 255, 0). Short form: #FF0, the exact same color.

In CSS: yellow

Conversions
HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
HSVhsv(60, 100%, 100%)
CMYKcmyk(0%, 0%, 100%, 0%)
Copy CSS
color: #ffff00; /* rgb */ color: rgb(255, 255, 0); /* hsl */ color: hsl(60, 100%, 50%);
Shades
Tints

Colors that go with Yellow

Contrast

1 of 2 backgrounds pass AA

  1. On whiteFail1.07 : 1
  2. On ink blackPass17.82 : 1

About Yellow

Yellow is the hex color #FFFF00, which translates to rgb(255, 255, 0) in RGB and hsl(60, 100%, 50%) in HSL. On the color wheel it sits at 60 degrees, with a saturation of 100 percent and a lightness of 50 percent. Its OKLCH chroma of 0.211 is high, so Yellow is one of the more vivid yellow tones here and is easy to overuse at large sizes.

How Yellow compares

Yellow is exactly the CSS keyword yellow, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is yellow-300 (#FFDF20), at a distance of 20.3. Inside this library the closest neighbour is Canary at 9.2. Sorted by lightness, Yellow is number 3 of the 18 yellow colors here.

Text on Yellow

3 of the five common text colors below clear WCAG AA for normal text on Yellow, led by Ink black at 17.82:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Yellow already loaded as the background.

Contrast of common text colors on Yellow. AA normal text needs 4.5:1, AA large text and non-text elements need 3:1, AAA normal text needs 7:1.
Text colorRatioAA normalAA largeAAA normal
White #FFFFFF1.07:1FailFailFail
Ink black #0F0F1217.82:1PassPassPass
Mid grey #6B72804.50:1PassPassFail
Dark grey #3741519.60:1PassPassPass
Light grey #E5E7EB1.15:1FailFailFail

Building a palette around Yellow

The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Yellow for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Yellow locked and let it fill in the rest.

Full values for Yellow

FormatValue
HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
HSVhsv(60, 100%, 100%)
CMYKcmyk(0%, 0%, 100%, 0%)
OKLCHoklch(96.80% 0.2110 109.77)
CIELABlab(97.14 -21.55 94.48)

Frequently asked questions

What is the RGB value of Yellow?

Yellow (#FFFF00) is rgb(255, 255, 0): 255 red, 255 green and 0 blue on the 0 to 255 scale. Red and green share the lead at 255 with blue at 0, which puts the hue at 60 degrees. In HSL the same color is hsl(60, 100%, 50%).

What colour is #FFFF00?

#FFFF00 is Yellow, a mid yellow colour with a hue of 60 degrees, 100% saturation and 50% lightness. For print the CMYK breakdown is 0% cyan, 0% magenta, 100% yellow and 0% black. Its nearest neighbour in this library is Canary, 9.2 away in CIELAB, a difference you can see.

Is Yellow a CSS color name?

Yes. The keyword yellow is one of the 148 named colors in CSS Color Module Level 4, so color: yellow; renders exactly #FFFF00.

Is #FF0 the same as #FFFF00?

Yes. In a 3-digit hex code every digit is doubled, so #FF0 expands to #FFFF00, which is Yellow. Browsers render both identically; the short form only saves three characters.

What colors go with Yellow?

Opposite Yellow on the color wheel sits the complementary #0000FF (Blue), the boldest accent by hue. For a calmer scheme use the analogous neighbours #FF8000 and #80FF00 (close to Chartreuse); for a balanced three-color scheme use the triadic pair #00FFFF (Cyan) and #FF00FF (Magenta). Of these, #0000FF has the most contrast against Yellow, at 8.00:1, enough for icons and large text.

What text color is readable on Yellow?

Ink black (#0F0F12) is the most readable on Yellow, at 17.82:1, which also clears WCAG AAA (7:1). 3 of the 5 common text colors tested pass AA for normal text.

Use Yellow in a tool

Nearby colors

Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.