Skip to content

#cfdb40

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

RGB
207, 219, 64
HSL
65°, 68%, 56%
CMYK
6, 0, 71, 14
Luminance
0.6430

Every format

HEX#cfdb40
RGBrgb(207, 219, 64)
HSLhsl(65, 68%, 56%)
CMYKcmyk(6%, 0%, 71%, 14%)
LABlab(84.1 -22.6 70.4)
LCHlch(84.1 74.0 107.8)
OKLCHoklch(0.855 0.171 113.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdb40 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#cfdb40 on black: 13.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green85.9%
Blue25.1%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow70.8%
Key (black)14.1%

Color previews

#cfdb40 text on a black background

contrast 13.86:1

Card sample

#cfdb40 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 219, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 219, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdb40;
background: linear-gradient(135deg, #cfdb40, #68DB40);

Monochromatic scale

Palettes built from #cfdb40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdb40 in the Color Lab