Skip to content

#ffec7b

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

RGB
255, 236, 123
HSL
51°, 100%, 74%
CMYK
0, 8, 52, 0
Luminance
0.8268

Every format

HEX#ffec7b
RGBrgb(255, 236, 123)
HSLhsl(51, 100%, 74%)
CMYKcmyk(0%, 8%, 52%, 0%)
LABlab(92.9 -7.6 56.5)
LCHlch(92.9 57.0 97.7)
OKLCHoklch(0.936 0.135 99.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffec7b on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#ffec7b on black: 17.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue48.2%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow51.8%
Key (black)0.0%

Color previews

#ffec7b text on a black background

contrast 17.54:1

Card sample

#ffec7b text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec7b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec7b in the Color Lab