Skip to content

#cdcb49

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

RGB
205, 203, 73
HSL
59°, 57%, 55%
CMYK
0, 1, 64, 20
Luminance
0.5617

Every format

HEX#cdcb49
RGBrgb(205, 203, 73)
HSLhsl(59, 57%, 55%)
CMYKcmyk(0%, 1%, 64%, 20%)
LABlab(79.7 -15.1 62.6)
LCHlch(79.7 64.4 103.6)
OKLCHoklch(0.820 0.149 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green79.6%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow64.4%
Key (black)19.6%

Color previews

#cdcb49 text on a black background

contrast 12.23:1

Card sample

#cdcb49 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 203, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 203, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdcb49;
background: linear-gradient(135deg, #cdcb49, #77CD49);

Monochromatic scale

Palettes built from #cdcb49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcb49 in the Color Lab