Maroon Colors  ·  Color Library

Palettes / Colors / #D4E166

#D4E166 — Yellow

#D4E166 is a yellow color we call Yellow, closest to the named color Khaki (#F0E68C). It belongs to the yellow family.

Color name

Closest CSS keyword: khaki (#F0E68C) — not an exact match. CSS khaki gives you #F0E68C, a different color; use #D4E166 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#D4E166 is a warm yellow color associated with optimism, attention and cheer. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #7266E1; it also sits naturally between #E1B066 and #97E166. In the palettes below you can see it working alongside real color combinations from our collection.

#D4E166 · RGB 212, 225, 102

Download PNG swatch SVG

Color values

HEX#D4E166
RGB212, 225, 102
HSL66°, 67%, 64%
HSV66°, 55%, 88%
CMYK6%, 0%, 55%, 12%
XYZ56.47, 68.81, 22.87
Yxy68.81, 0.3812, 0.4644
CIE-Lab86.41, -21.07, 57.67
Hunter Lab82.95, -19.51, 38.63

RGB & CMYK percentages

Red 83% · Green 88% · Blue 40%

Cyan 6% · Magenta 0% · Yellow 55% · Key 12%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #D4E166 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #D4E166 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #D4E166

.text { color: #D4E166; }
.background { background-color: #D4E166; }
.border { border: 3px solid #D4E166; }
.text-rgb { color: rgb(212, 225, 102); }
.text-hsl { color: hsl(66, 67%, 64%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #D4E166; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(212, 225, 102, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #D4E166; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(212, 225, 102, 0.8); }

HTML: <p style="color:#D4E166">Text here</p> · <div style="background-color:#D4E166">Div content here</div>

Shades of #D4E166

#CDDC4C#C6D733#B4C427#9DAA22#85911D#6E7718#565E13#3F440D#272B08#101103

Tints of #D4E166

#D8E372#DCE67F#E0E990#E4EC9D#E7EEAA#EBF1B7#EEF3C3#F3F7D4#F7F9E1#FAFCEE

Tones of #D4E166

#CDD86F#C6CF77#BFC680#B8BE89#B1B592#ABAC9A

Color harmonies

Complementary — #7266E1:

Analogous:

Triadic:

Contrast & accessibility

Against white text1.42:1 Fails
Against black text14.76:1 AAA

Best text color on #D4E166: #000000.

Semi-transparent (opacity) text on #D4E166

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #D4E166: ·

How #D4E166 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #DADA84Deuteranopia · #D9D88BTritanopia · #D59BA0

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Material Lime 500 · #CDDC39Material Yellow 500 · #FFEB3BMaterial Light Green 500 · #8BC34A

Palettes with a similar color

These palettes use a close neighbour of #D4E166 rather than the exact color:

Vivid Ruby Petal
#537718 · #CEE063 · #682AD0 · #BDA8E7
Velvet Ember
#2492A2 · #A82597 · #CDDC60 · #D2E7EF
Burning Ruby Cascade
#AD3415 · #E6AD32 · #D5EC64 · #C4F4A9
Gentle Voyage
#8EB824 · #D7E371 · #683AD8 · #B6AEE9
Palette 89ac46
#89AC46 · #D3E671 · #F8ED8C · #FF8989
Palette D6d85d
#D6D85D · #ECEDB0 · #EAD8A4 · #F68537

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#CEE063#CDDC60#D5EC64#D7E371#D3E671#D6D85D#E1E16A#D3E971#D8D365#D6D46D#D3F067#DFE171

Browse neighbouring colors

← #D4E165  ·  #D4E167 →

Frequently asked questions

What color is #D4E166?

#D4E166 is Yellow, a yellow color (RGB 212, 225, 102). Its closest standard named color is Khaki.

What is the RGB and HSL of #D4E166?

#D4E166 is RGB 212, 225, 102 — HSL 66°, 67%, 64% — CMYK 6%, 0%, 55%, 12%.

What colors go with #D4E166?

Its complement is #7266E1; analogous partners are #E1B066 and #97E166. It also appears in 6+ palettes in our collection.

Can I use #D4E166 for text?

Black text on #D4E166 has a contrast ratio of 14.76:1 (passes WCAG AA); white text gives 1.42:1.