Skip to content

#cad40f

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

RGB
202, 212, 15
HSL
63°, 87%, 45%
CMYK
5, 0, 93, 17
Luminance
0.5968

Every format

HEX#cad40f
RGBrgb(202, 212, 15)
HSLhsl(63, 87%, 45%)
CMYKcmyk(5%, 0%, 93%, 17%)
LABlab(81.7 -22.8 79.9)
LCHlch(81.7 83.1 105.9)
OKLCHoklch(0.834 0.184 113.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cad40f on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#cad40f on black: 12.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green83.1%
Blue5.9%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow92.9%
Key (black)16.9%

Color previews

#cad40f text on a black background

contrast 12.94:1

Card sample

#cad40f text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 212, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 212, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cad40f;
background: linear-gradient(135deg, #cad40f, #47D40F);

Monochromatic scale

Palettes built from #cad40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cad40f in the Color Lab