Skip to content

#ffeb0c

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

RGB
255, 235, 12
HSL
55°, 100%, 52%
CMYK
0, 8, 95, 0
Luminance
0.8070

Every format

HEX#ffeb0c
RGBrgb(255, 235, 12)
HSLhsl(55, 100%, 52%)
CMYKcmyk(0%, 8%, 95%, 0%)
LABlab(92.0 -11.8 89.8)
LCHlch(92.0 90.6 97.5)
OKLCHoklch(0.927 0.194 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffeb0c on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#ffeb0c on black: 17.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.2%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow95.3%
Key (black)0.0%

Color previews

#ffeb0c text on a black background

contrast 17.14:1

Card sample

#ffeb0c text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb0c in the Color Lab