Skip to content

#cdcf48

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

RGB
205, 207, 72
HSL
61°, 58%, 55%
CMYK
1, 0, 65, 19
Luminance
0.5807

Every format

HEX#cdcf48
RGBrgb(205, 207, 72)
HSLhsl(61, 58%, 55%)
CMYKcmyk(1%, 0%, 65%, 19%)
LABlab(80.8 -17.2 64.1)
LCHlch(80.8 66.3 105.0)
OKLCHoklch(0.828 0.154 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcf48 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#cdcf48 on black: 12.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green81.2%
Blue28.2%

CMYK percentages

Cyan1.0%
Magenta0.0%
Yellow65.2%
Key (black)18.8%

Color previews

#cdcf48 text on a black background

contrast 12.61:1

Card sample

#cdcf48 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcf48

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcf48 in the Color Lab