Skip to content

#dafd0c

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

RGB
218, 253, 12
HSL
69°, 98%, 52%
CMYK
14, 0, 95, 1
Luminance
0.8518

Every format

HEX#dafd0c
RGBrgb(218, 253, 12)
HSLhsl(69, 98%, 52%)
CMYKcmyk(14%, 0%, 95%, 1%)
LABlab(94.0 -35.5 90.1)
LCHlch(94.0 96.8 111.5)
OKLCHoklch(0.936 0.220 119.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red85.5%
Green99.2%
Blue4.7%

CMYK percentages

Cyan13.8%
Magenta0.0%
Yellow95.3%
Key (black)0.8%

Color previews

#dafd0c text on a black background

contrast 18.04:1

Card sample

#dafd0c text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dafd0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dafd0c in the Color Lab