Skip to content

#ffef1b

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

RGB
255, 239, 27
HSL
56°, 100%, 55%
CMYK
0, 6, 89, 0
Luminance
0.8307

Every format

HEX#ffef1b
RGBrgb(255, 239, 27)
HSLhsl(56, 100%, 55%)
CMYKcmyk(0%, 6%, 89%, 0%)
LABlab(93.0 -13.6 88.9)
LCHlch(93.0 89.9 98.7)
OKLCHoklch(0.935 0.194 104.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffef1b on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#ffef1b on black: 17.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green93.7%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow89.4%
Key (black)0.0%

Color previews

#ffef1b text on a black background

contrast 17.61:1

Card sample

#ffef1b text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffef1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffef1b in the Color Lab