Skip to content

#ffff01

a balanced, electric yellow · cool · “yellow”

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

Every format

HEX#ffff01
RGBrgb(255, 255, 1)
HSLhsl(60, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 0%)
LABlab(97.1 -21.6 94.4)
LCHlch(97.1 96.8 102.9)
OKLCHoklch(0.968 0.211 109.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow99.6%
Key (black)0.0%

Color previews

#ffff01 text on a black background

contrast 19.56:1

Card sample

#ffff01 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff01

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff01 in the Color Lab