Skip to content

#fdf308

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

RGB
253, 243, 8
HSL
58°, 98%, 51%
CMYK
0, 4, 97, 1
Luminance
0.8500

Every format

HEX#fdf308
RGBrgb(253, 243, 8)
HSLhsl(58, 98%, 51%)
CMYKcmyk(0%, 4%, 97%, 1%)
LABlab(93.9 -16.6 91.5)
LCHlch(93.9 92.9 100.3)
OKLCHoklch(0.942 0.201 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf308 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fdf308 on black: 18.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green95.3%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow96.8%
Key (black)0.8%

Color previews

#fdf308 text on a black background

contrast 18.00:1

Card sample

#fdf308 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf308 in the Color Lab