Skip to content

#d7f02a

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

RGB
215, 240, 42
HSL
68°, 87%, 55%
CMYK
10, 0, 83, 6
Luminance
0.7693

Every format

HEX#d7f02a
RGBrgb(215, 240, 42)
HSLhsl(68, 87%, 55%)
CMYKcmyk(10%, 0%, 83%, 6%)
LABlab(90.3 -30.2 82.6)
LCHlch(90.3 87.9 110.1)
OKLCHoklch(0.906 0.201 117.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d7f02a on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#d7f02a on black: 16.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green94.1%
Blue16.5%

CMYK percentages

Cyan10.4%
Magenta0.0%
Yellow82.5%
Key (black)5.9%

Color previews

#d7f02a text on a black background

contrast 16.39:1

Card sample

#d7f02a text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 240, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 240, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7f02a;
background: linear-gradient(135deg, #d7f02a, #53F02A);

Monochromatic scale

Palettes built from #d7f02a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7f02a in the Color Lab