Skip to content

#cec430

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

RGB
206, 196, 48
HSL
56°, 62%, 50%
CMYK
0, 5, 77, 19
Luminance
0.5282

Every format

HEX#cec430
RGBrgb(206, 196, 48)
HSLhsl(56, 62%, 50%)
CMYKcmyk(0%, 5%, 77%, 19%)
LABlab(77.8 -12.4 69.7)
LCHlch(77.8 70.8 100.1)
OKLCHoklch(0.804 0.158 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec430 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#cec430 on black: 11.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green76.9%
Blue18.8%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow76.7%
Key (black)19.2%

Color previews

#cec430 text on a black background

contrast 11.56:1

Card sample

#cec430 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 196, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 196, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec430;
background: linear-gradient(135deg, #cec430, #6FCE30);

Monochromatic scale

Palettes built from #cec430

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec430 in the Color Lab