Skip to content

#dafb21

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

RGB
218, 251, 33
HSL
69°, 97%, 56%
CMYK
13, 0, 87, 2
Luminance
0.8401

Every format

HEX#dafb21
RGBrgb(218, 251, 33)
HSLhsl(69, 97%, 56%)
CMYKcmyk(13%, 0%, 87%, 2%)
LABlab(93.5 -34.3 87.1)
LCHlch(93.5 93.6 111.5)
OKLCHoklch(0.932 0.213 119.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dafb21 on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#dafb21 on black: 17.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green98.4%
Blue12.9%

CMYK percentages

Cyan13.1%
Magenta0.0%
Yellow86.9%
Key (black)1.6%

Color previews

#dafb21 text on a black background

contrast 17.80:1

Card sample

#dafb21 text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dafb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dafb21 in the Color Lab