Skip to content

#cdcf46

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

RGB
205, 207, 70
HSL
61°, 59%, 54%
CMYK
1, 0, 66, 19
Luminance
0.5805

Every format

HEX#cdcf46
RGBrgb(205, 207, 70)
HSLhsl(61, 59%, 54%)
CMYKcmyk(1%, 0%, 66%, 19%)
LABlab(80.8 -17.3 64.8)
LCHlch(80.8 67.1 104.9)
OKLCHoklch(0.828 0.155 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green81.2%
Blue27.5%

CMYK percentages

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

Color previews

#cdcf46 text on a black background

contrast 12.61:1

Card sample

#cdcf46 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcf46

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcf46 in the Color Lab