Skip to content

#cfdc0f

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

RGB
207, 220, 15
HSL
64°, 87%, 46%
CMYK
6, 0, 93, 14
Luminance
0.6449

Every format

HEX#cfdc0f
RGBrgb(207, 220, 15)
HSLhsl(64, 87%, 46%)
CMYKcmyk(6%, 0%, 93%, 14%)
LABlab(84.2 -24.6 82.0)
LCHlch(84.2 85.6 106.7)
OKLCHoklch(0.856 0.190 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green86.3%
Blue5.9%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow93.2%
Key (black)13.7%

Color previews

#cfdc0f text on a black background

contrast 13.90:1

Card sample

#cfdc0f text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdc0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdc0f in the Color Lab