Skip to content

#ffff1b

a balanced, electric yellow · cool · “yellow”

RGB
255, 255, 27
HSL
60°, 100%, 55%
CMYK
0, 0, 89, 0
Luminance
0.9286

Every format

HEX#ffff1b
RGBrgb(255, 255, 27)
HSLhsl(60, 100%, 55%)
CMYKcmyk(0%, 0%, 89%, 0%)
LABlab(97.2 -21.3 92.1)
LCHlch(97.2 94.5 103.0)
OKLCHoklch(0.968 0.207 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green100.0%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow89.4%
Key (black)0.0%

Color previews

#ffff1b text on a black background

contrast 19.57:1

Card sample

#ffff1b text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff1b in the Color Lab