#D7C342 Color Information

Hex color code: #D7C342

The hex color #D7C342 is a muted yellow with RGB values of (215, 195, 66) and HSL of (52°, 65%, 55%). It is widely used in graphic design.

Try:
Color NameGoldenrod
HEX
#D7C342
RGB
215, 195, 66
HSL
52°, 65%, 55%
CMYK
0%, 9%, 69%, 16%

Shades

CSS Usage
color: #D7C342;
background-color: #D7C342;
border-color: #D7C342;
box-shadow: 0 0 10px #D7C342;
border: 2px solid #D7C342;
Tailwind Usage
bg-[#D7C342]
text-[#D7C342]
border-[#D7C342]
shadow-[0_0_10px_D7C342]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #D7C342, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #D7C342; color: #000000; }

Badge

New Feature
.badge { background-color: #D7C342; color: #000000; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #D7C342; background-color: #D7C34215; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #D7C34220; border-left: 4px solid #D7C342; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #D7C342; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #D7C342 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

215, 195, 66

Red: 215 / Green: 195 / Blue: 66

HSL

52°, 65%, 55%

Hue: 52° / Saturation: 65% / Lightness: 55%

CMYK

0%, 9%, 69%, 16%

Cyan: 0% / Magenta: 9% / Yellow: 69% / Key: 16%

What color is #D7C342?

#D7C342 is a orange-yellow hue associated with optimism and creativity.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D7C342 to RGB:

rgb(215, 195, 66)HEX to RGB Converter →

HEX to HSL

Convert #D7C342 to HSL:

hsl(52, 65%, 55%)RGB to HSL Converter →

HEX to CMYK

Convert #D7C342 to CMYK:

cmyk(0%, 9%, 69%, 16%)Color Converter →

Color Meaning and Usage

A subtle yellow tone, #D7C342 has RGB (215, 195, 66) and HSL (52°, 65%, 55%). Known for evoking optimism and creativity, this orange-yellow hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D7C342 is #4256D7, creating high-contrast pairings. For softer combinations, try analogous colors like #D77842.

Use #D7C342 in CSS: color: #D7C342 or background-color: #D7C342. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #D7C342

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 11.77:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D7C342?

#D7C342 is a subtle yellow color - a orange-yellow hue that evokes optimism and creativity.

What is the RGB value of #D7C342?

#D7C342 in RGB is (215, 195, 66) - 215 red, 195 green, and 66 blue.

How to use #D7C342 in CSS?

Use #D7C342 directly in your CSS properties like color or background-color.

What colors go well with #D7C342?

#4256D7 (complementary), #D77842 (analogous), and #A89724 (lighter shade) work well with #D7C342.