#d7cc13
a balanced, electric yellow · warm · closest name: Gold
At a glance
Every number on this page in one read: what #d7cc13 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 | #d7cc13 |
| RGB | rgb(215, 204, 19) |
| HSL | hsl(57, 84%, 46%) |
| CMYK | cmyk(0%, 5%, 91%, 16%) |
| LAB | lab(80.6 -13.3 79.0) |
| LCH | lch(80.6 80.1 99.6) |
| OKLCH | oklch(0.828 0.173 105.6) |
| Decimal | 14142483 |
| Display P3 | color(display-p3 0.843 0.800 0.075) |
Copy-ready code
/* CSS */
color: #d7cc13;
background-color: #d7cc13;
/* Tailwind (arbitrary) */
class="text-[#d7cc13] bg-[#d7cc13]"
/* SCSS */
$brand: #d7cc13;
/* SwiftUI */
Color(red: 0.843, green: 0.800, blue: 0.075)
/* Android */
Color.parseColor("#d7cc13")
/* Flutter */
Color(0xFFD7CC13)
/* Python / OpenCV (BGR) */
(19, 204, 215)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. #d7cc13 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FCFCF2;
--brand-100: #FAF9E6;
--brand-200: #F6F4C5;
--brand-300: #F6F198;
--brand-400: #F1E964;
--brand-500: #EDE231;
--brand-600: #d7cc13;
--brand-700: #BBB211;
--brand-800: #968E0D;
--brand-900: #6C670E;
--brand-950: #444009;
--brand: #d7cc13;
--brand-ink: #000000;
}Colors that work with #d7cc13
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 #d7cc13
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 | #131ED7 | Directly opposite — maximum tension | |
| Analogous left | #D76A13 | Neighbour, quieter | |
| Analogous right | #80D713 | Neighbour, quieter | |
| Split-complement 1 | #1380D7 | Contrast without the clash | |
| Split-complement 2 | #6A13D7 | Contrast without the clash | |
| Triadic 1 | #13D7CC | Even thirds — balanced and loud | |
| Triadic 2 | #CC13D7 | Even thirds — balanced and loud | |
| Tetradic | #13D76A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#d7cc13 text on a black background
contrast 12.54:1
#d7cc13 text on a white background
contrast 1.68:1
CSS3 live lab
The quick brown fox
color: #d7cc13;
background-color: #d7cc13;
Glowing headline
text-shadow: 2px 2px 8px #d7cc13;
Soft neon halo
text-shadow: 0 0 14px rgba(215, 204, 19, 0.45);
box-shadow: 0 12px 32px -8px rgba(215, 204, 19, 0.45);
border: 3px solid #d7cc13; background: linear-gradient(135deg, #d7cc13, #5FD713);
Monochromatic scale
Palettes built from #d7cc13
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.1 away, with its history, psychology and brand usage.
#d7cc13 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#d7cc13, answered
What color is #d7cc13?
#d7cc13 is a balanced electric yellow, closest to Gold (ΔE2000 8). It sits at 57° on the hue wheel with 84% saturation and 46% lightness, which reads as warm.
What is the RGB value of #d7cc13?
rgb(215, 204, 19) — 215 red, 204 green and 19 blue out of 255, or 84.3% / 80% / 7.5% by channel.
Is #d7cc13 a light or a dark color?
It is a light color. Relative luminance is 0.5768 and perceived brightness is 77%, so black text on it reaches 12.54:1.
Should I use black or white text on #d7cc13?
Black. It scores 12.54:1 against #d7cc13, versus 1.68:1 for white — AAA at any size.
What is the complementary color of #d7cc13?
#131ED7 sits directly opposite on the wheel. Softer options are the split-complements #1380D7 and #6A13D7, which give the same contrast with far less vibration.
What colors go well with #d7cc13?
For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #0E4DDC as an accent and #756F0A for hover and pressed states. For a palette, the analogous pair #D76A13 and #80D713 stays calm, while #131ED7 is the loudest partner.
What is #d7cc13 in CMYK for printing?
cmyk(0%, 5%, 91%, 16%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #d7cc13 warm or cool?
Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D79513; nudged cooler, #9BD911.