Skip to content

#d3f308

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

RGB
211, 243, 8
HSL
68°, 94%, 49%
CMYK
13, 0, 97, 5
Luminance
0.7797

Every format

HEX#d3f308
RGBrgb(211, 243, 8)
HSLhsl(68, 94%, 49%)
CMYKcmyk(13%, 0%, 97%, 5%)
LABlab(90.8 -33.8 87.7)
LCHlch(90.8 94.0 111.1)
OKLCHoklch(0.909 0.213 118.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d3f308 on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#d3f308 on black: 16.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.7%
Green95.3%
Blue3.1%

CMYK percentages

Cyan13.2%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#d3f308 text on a black background

contrast 16.59:1

Card sample

#d3f308 text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 243, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 243, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d3f308;
background: linear-gradient(135deg, #d3f308, #36F308);

Monochromatic scale

Palettes built from #d3f308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d3f308 in the Color Lab