Skip to content

#dfda28

a balanced, vivid yellow · cool · closest name: gold

RGB
223, 218, 40
HSL
58°, 74%, 52%
CMYK
0, 2, 82, 13
Luminance
0.6598

Every format

HEX#dfda28
RGBrgb(223, 218, 40)
HSLhsl(58, 74%, 52%)
CMYKcmyk(0%, 2%, 82%, 13%)
LABlab(85.0 -16.4 78.8)
LCHlch(85.0 80.5 101.8)
OKLCHoklch(0.865 0.178 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfda28 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#dfda28 on black: 14.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.5%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow82.1%
Key (black)12.5%

Color previews

#dfda28 text on a black background

contrast 14.20:1

Card sample

#dfda28 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfda28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfda28 in the Color Lab