Skip to content

#cecb2f

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

RGB
206, 203, 47
HSL
59°, 63%, 50%
CMYK
0, 2, 77, 19
Luminance
0.5604

Every format

HEX#cecb2f
RGBrgb(206, 203, 47)
HSLhsl(59, 63%, 50%)
CMYKcmyk(0%, 2%, 77%, 19%)
LABlab(79.6 -15.9 71.7)
LCHlch(79.6 73.5 102.5)
OKLCHoklch(0.819 0.165 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cecb2f on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#cecb2f on black: 12.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green79.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow77.2%
Key (black)19.2%

Color previews

#cecb2f text on a black background

contrast 12.21:1

Card sample

#cecb2f text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 203, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 203, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cecb2f;
background: linear-gradient(135deg, #cecb2f, #67CE2F);

Monochromatic scale

Palettes built from #cecb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cecb2f in the Color Lab