Skip to content

#ecc310

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

RGB
236, 195, 16
HSL
49°, 87%, 49%
CMYK
0, 17, 93, 8
Luminance
0.5690

Every format

HEX#ecc310
RGBrgb(236, 195, 16)
HSLhsl(49, 87%, 49%)
CMYKcmyk(0%, 17%, 93%, 8%)
LABlab(80.1 0.3 79.9)
LCHlch(80.1 79.9 89.8)
OKLCHoklch(0.829 0.168 93.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc310 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#ecc310 on black: 12.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green76.5%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta17.4%
Yellow93.2%
Key (black)7.5%

Color previews

#ecc310 text on a black background

contrast 12.38:1

Card sample

#ecc310 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 195, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 195, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecc310;
background: linear-gradient(135deg, #ecc310, #82EC10);

Monochromatic scale

Palettes built from #ecc310

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc310 in the Color Lab