Skip to content

#dec45f

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

RGB
222, 196, 95
HSL
48°, 66%, 62%
CMYK
0, 12, 57, 13
Luminance
0.5584

Every format

HEX#dec45f
RGBrgb(222, 196, 95)
HSLhsl(48, 66%, 62%)
CMYKcmyk(0%, 12%, 57%, 13%)
LABlab(79.5 -3.0 53.2)
LCHlch(79.5 53.3 93.2)
OKLCHoklch(0.823 0.124 95.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dec45f on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#dec45f on black: 12.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green76.9%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta11.7%
Yellow57.2%
Key (black)12.9%

Color previews

#dec45f text on a black background

contrast 12.17:1

Card sample

#dec45f text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 196, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 196, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dec45f;
background: linear-gradient(135deg, #dec45f, #A3DE5F);

Monochromatic scale

Palettes built from #dec45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dec45f in the Color Lab