Skip to content

#cdd01f

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

RGB
205, 208, 31
HSL
61°, 74%, 47%
CMYK
1, 0, 85, 18
Luminance
0.5819

Every format

HEX#cdd01f
RGBrgb(205, 208, 31)
HSLhsl(61, 74%, 47%)
CMYKcmyk(1%, 0%, 85%, 18%)
LABlab(80.8 -19.3 76.7)
LCHlch(80.8 79.1 104.1)
OKLCHoklch(0.828 0.176 110.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green81.6%
Blue12.2%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow85.1%
Key (black)18.4%

Color previews

#cdd01f text on a black background

contrast 12.64:1

Card sample

#cdd01f text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 208, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 208, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdd01f;
background: linear-gradient(135deg, #cdd01f, #57D01F);

Monochromatic scale

Palettes built from #cdd01f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdd01f in the Color Lab