Skip to content

#ffff4f

a light, electric yellow · cool · closest name: yellow

RGB
255, 255, 79
HSL
60°, 100%, 66%
CMYK
0, 0, 69, 0
Luminance
0.9334

Every format

HEX#ffff4f
RGBrgb(255, 255, 79)
HSLhsl(60, 100%, 66%)
CMYKcmyk(0%, 0%, 69%, 0%)
LABlab(97.4 -19.7 79.4)
LCHlch(97.4 81.8 103.9)
OKLCHoklch(0.971 0.187 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green100.0%
Blue31.0%

CMYK percentages

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

Color previews

#ffff4f text on a black background

contrast 19.67:1

Card sample

#ffff4f text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff4f in the Color Lab