Skip to content

#d2f40c

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

RGB
210, 244, 12
HSL
69°, 91%, 50%
CMYK
14, 0, 95, 4
Luminance
0.7843

Every format

HEX#d2f40c
RGBrgb(210, 244, 12)
HSLhsl(69, 91%, 50%)
CMYKcmyk(14%, 0%, 95%, 4%)
LABlab(91.0 -34.6 87.5)
LCHlch(91.0 94.1 111.6)
OKLCHoklch(0.910 0.213 119.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2f40c on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#d2f40c on black: 16.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green95.7%
Blue4.7%

CMYK percentages

Cyan13.9%
Magenta0.0%
Yellow95.1%
Key (black)4.3%

Color previews

#d2f40c text on a black background

contrast 16.69:1

Card sample

#d2f40c text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 244, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 244, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2f40c;
background: linear-gradient(135deg, #d2f40c, #37F40C);

Monochromatic scale

Palettes built from #d2f40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2f40c in the Color Lab