Skip to content

#daf308

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

RGB
218, 243, 8
HSL
66°, 94%, 49%
CMYK
10, 0, 97, 5
Luminance
0.7902

Every format

HEX#daf308
RGBrgb(218, 243, 8)
HSLhsl(66, 94%, 49%)
CMYKcmyk(10%, 0%, 97%, 5%)
LABlab(91.3 -30.9 88.3)
LCHlch(91.3 93.6 109.3)
OKLCHoklch(0.914 0.210 117.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#daf308 on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#daf308 on black: 16.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green95.3%
Blue3.1%

CMYK percentages

Cyan10.3%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#daf308 text on a black background

contrast 16.80:1

Card sample

#daf308 text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #daf308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #daf308 in the Color Lab