Skip to content

#ffff00

a balanced, electric yellow · cool · “yellow”

RGB
255, 255, 0
HSL
60°, 100%, 50%
CMYK
0, 0, 100, 0
Luminance
0.9278

Every format

HEX#ffff00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 0%)
LABlab(97.1 -21.6 94.5)
LCHlch(97.1 96.9 102.8)
OKLCHoklch(0.968 0.211 109.8)

Copy-ready code

/* CSS */
color: #ffff00;
background-color: #ffff00;
/* Tailwind (arbitrary) */
class="text-[#ffff00] bg-[#ffff00]"
/* SCSS */
$brand: #ffff00;
/* SwiftUI */
Color(red: 1.000, green: 1.000, blue: 0.000)
/* Android */
Color.parseColor("#ffff00")

Accessibility — WCAG contrast

Aa
#ffff00 on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#ffff00 on black: 19.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green100.0%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow100.0%
Key (black)0.0%

Color previews

#ffff00 text on a black background

contrast 19.56:1

Card sample

#ffff00 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ffff00;
Background color
Panel with #ffff00 background
background-color: #ffff00;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ffff00;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(255, 255, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 255, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffff00;
background: linear-gradient(135deg, #ffff00, #55FF00);

Monochromatic scale

Palettes built from #ffff00

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff00 in the Color Lab