#d8df46
a balanced, vivid yellow · warm · closest name: Khaki
At a glance
Every number on this page in one read: what #d8df46 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #d8df46 |
| RGB | rgb(216, 223, 70) |
| HSL | hsl(63, 71%, 58%) |
| CMYK | cmyk(3%, 0%, 69%, 13%) |
| LAB | lab(85.9 -20.6 70.3) |
| LCH | lch(85.9 73.3 106.3) |
| OKLCH | oklch(0.872 0.169 112.0) |
| Decimal | 14212934 |
| Display P3 | color(display-p3 0.847 0.875 0.275) |
Copy-ready code
/* CSS */
color: #d8df46;
background-color: #d8df46;
/* Tailwind (arbitrary) */
class="text-[#d8df46] bg-[#d8df46]"
/* SCSS */
$brand: #d8df46;
/* SwiftUI */
Color(red: 0.847, green: 0.875, blue: 0.275)
/* Android */
Color.parseColor("#d8df46")
/* Flutter */
Color(0xFFD8DF46)
/* Python / OpenCV (BGR) */
(70, 223, 216)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #d8df46 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FBFCF3;
--brand-100: #F7F8E7;
--brand-200: #F1F2C9;
--brand-300: #EBEE9F;
--brand-400: #E1E670;
--brand-500: #d8df46;
--brand-600: #C9D124;
--brand-700: #A7AE1E;
--brand-800: #868B18;
--brand-900: #616516;
--brand-950: #3D3F0D;
--brand: #d8df46;
--brand-ink: #000000;
}Colors that work with #d8df46
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #d8df46
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Thin strokes and 1px borders — they disappear on light UI
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #4D46DF | Directly opposite — maximum tension | |
| Analogous left | #DF9A46 | Neighbour, quieter | |
| Analogous right | #8CDF46 | Neighbour, quieter | |
| Split-complement 1 | #468CDF | Contrast without the clash | |
| Split-complement 2 | #9A46DF | Contrast without the clash | |
| Triadic 1 | #46D8DF | Even thirds — balanced and loud | |
| Triadic 2 | #DF46D8 | Even thirds — balanced and loud | |
| Tetradic | #46DF9A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#d8df46 text on a black background
contrast 14.56:1
#d8df46 text on a white background
contrast 1.44:1
CSS3 live lab
The quick brown fox
color: #d8df46;
background-color: #d8df46;
Glowing headline
text-shadow: 2px 2px 8px #d8df46;
Soft neon halo
text-shadow: 0 0 14px rgba(216, 223, 70, 0.45);
box-shadow: 0 12px 32px -8px rgba(216, 223, 70, 0.45);
border: 3px solid #d8df46; background: linear-gradient(135deg, #d8df46, #72DF46);
Monochromatic scale
Palettes built from #d8df46
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Dandelion (#f0e130) — ΔE2000 5.8 away, with its history, psychology and brand usage.
#d8df46 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#d8df46, answered
What color is #d8df46?
#d8df46 is a balanced vivid yellow, closest to Khaki (ΔE2000 8.5). It sits at 63° on the hue wheel with 71% saturation and 58% lightness, which reads as warm.
What is the RGB value of #d8df46?
rgb(216, 223, 70) — 216 red, 223 green and 70 blue out of 255, or 84.7% / 87.5% / 27.5% by channel.
Is #d8df46 a light or a dark color?
It is a light color. Relative luminance is 0.6782 and perceived brightness is 82%, so black text on it reaches 14.56:1.
Should I use black or white text on #d8df46?
Black. It scores 14.56:1 against #d8df46, versus 1.44:1 for white — AAA at any size.
What is the complementary color of #d8df46?
#4D46DF sits directly opposite on the wheel. Softer options are the split-complements #468CDF and #9A46DF, which give the same contrast with far less vibration.
What colors go well with #d8df46?
For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #979B4B for secondary text, #4263E3 as an accent and #696D13 for hover and pressed states. For a palette, the analogous pair #DF9A46 and #8CDF46 stays calm, while #4D46DF is the loudest partner.
What is #d8df46 in CMYK for printing?
cmyk(3%, 0%, 69%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #d8df46 warm or cool?
Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFAE46; nudged cooler, #A1E144.