Skip to content

#daf821

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

RGB
218, 248, 33
HSL
68°, 94%, 55%
CMYK
12, 0, 87, 3
Luminance
0.8215

Every format

HEX#daf821
RGBrgb(218, 248, 33)
HSLhsl(68, 94%, 55%)
CMYKcmyk(12%, 0%, 87%, 3%)
LABlab(92.6 -32.9 86.4)
LCHlch(92.6 92.4 110.8)
OKLCHoklch(0.925 0.210 118.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#daf821 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#daf821 on black: 17.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green97.3%
Blue12.9%

CMYK percentages

Cyan12.1%
Magenta0.0%
Yellow86.7%
Key (black)2.7%

Color previews

#daf821 text on a black background

contrast 17.43:1

Card sample

#daf821 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(218, 248, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 248, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #daf821;
background: linear-gradient(135deg, #daf821, #4BF821);

Monochromatic scale

Palettes built from #daf821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #daf821 in the Color Lab