Skip to content
Vectorlight.net

yellow (#ffff00)

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#ffff00
RGB
255, 255, 0
HSL
60°, 100%, 50%
OKLCH
0.97 0.21 109.77
Names
yellow

Codes

FormatValue
HEX#ffff00
RGBrgb(255 255 0)
HSLhsl(60 100% 50%)
OKLCHoklch(0.97 0.21 109.77)
CMYKcmyk(0% 0% 100% 0%)
Android#ffffff00

Names & lists

yellow CSS named

Web-safe: Yes

Tailwind: No

Contrast

Aa
1.07:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
19.55:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#ffff00"
Gradient stop
<stop stop-color="#ffff00"/>
CSS variable + fill
:root { --c: #ffff00; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #ffff00;
background-color: #ffff00;
bg-[#ffff00]