Skip to content

#dafd2d

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

RGB
218, 253, 45
HSL
70°, 98%, 58%
CMYK
14, 0, 82, 1
Luminance
0.8535

Every format

HEX#dafd2d
RGBrgb(218, 253, 45)
HSLhsl(70, 98%, 58%)
CMYKcmyk(14%, 0%, 82%, 1%)
LABlab(94.0 -34.9 85.2)
LCHlch(94.0 92.0 112.3)
OKLCHoklch(0.937 0.212 119.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dafd2d on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#dafd2d on black: 18.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green99.2%
Blue17.6%

CMYK percentages

Cyan13.8%
Magenta0.0%
Yellow82.2%
Key (black)0.8%

Color previews

#dafd2d text on a black background

contrast 18.07:1

Card sample

#dafd2d text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dafd2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dafd2d in the Color Lab