Skip to content

#dfd95f

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

RGB
223, 217, 95
HSL
57°, 67%, 62%
CMYK
0, 3, 57, 13
Luminance
0.6614

Every format

HEX#dfd95f
RGBrgb(223, 217, 95)
HSLhsl(57, 67%, 62%)
CMYKcmyk(0%, 3%, 57%, 13%)
LABlab(85.1 -13.2 59.5)
LCHlch(85.1 60.9 102.5)
OKLCHoklch(0.867 0.143 106.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green85.1%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta2.7%
Yellow57.4%
Key (black)12.5%

Color previews

#dfd95f text on a black background

contrast 14.23:1

Card sample

#dfd95f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 217, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 217, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd95f;
background: linear-gradient(135deg, #dfd95f, #90DF5F);

Monochromatic scale

Palettes built from #dfd95f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd95f in the Color Lab