Skip to content

#cfdc2f

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

RGB
207, 220, 47
HSL
65°, 71%, 52%
CMYK
6, 0, 79, 14
Luminance
0.6466

Every format

HEX#cfdc2f
RGBrgb(207, 220, 47)
HSLhsl(65, 71%, 52%)
CMYKcmyk(6%, 0%, 79%, 14%)
LABlab(84.3 -23.8 75.9)
LCHlch(84.3 79.6 107.4)
OKLCHoklch(0.857 0.181 114.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdc2f on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#cfdc2f on black: 13.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green86.3%
Blue18.4%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow78.6%
Key (black)13.7%

Color previews

#cfdc2f text on a black background

contrast 13.93:1

Card sample

#cfdc2f text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 220, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 220, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdc2f;
background: linear-gradient(135deg, #cfdc2f, #5CDC2F);

Monochromatic scale

Palettes built from #cfdc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdc2f in the Color Lab