Skip to content

#dafc21

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

RGB
218, 252, 33
HSL
69°, 97%, 56%
CMYK
14, 0, 87, 1
Luminance
0.8464

Every format

HEX#dafc21
RGBrgb(218, 252, 33)
HSLhsl(69, 97%, 56%)
CMYKcmyk(14%, 0%, 87%, 1%)
LABlab(93.7 -34.7 87.3)
LCHlch(93.7 93.9 111.7)
OKLCHoklch(0.934 0.215 119.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dafc21 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#dafc21 on black: 17.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green98.8%
Blue12.9%

CMYK percentages

Cyan13.5%
Magenta0.0%
Yellow86.9%
Key (black)1.2%

Color previews

#dafc21 text on a black background

contrast 17.93:1

Card sample

#dafc21 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dafc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dafc21 in the Color Lab