Skip to content

#d4ce2d

a balanced, vivid yellow · warm · closest name: Gold

RGB
212, 206, 45
HSL
58°, 66%, 50%
CMYK
0, 3, 79, 17
Luminance
0.5833

At a glance

Every number on this page in one read: what #d4ce2d is made of, how bright it looks, and which way it leans.

Hex
#d4ce2d
Hue
58°
yellow
Saturation
66%
vivid
Lightness
50%
balanced
Brightness
83%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5833
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.67:1
Closest name
Gold
ΔE2000 9.2
Where it sits
Hue58° of 360°
Saturation66%
Lightness50%
Temperature
Warm ← → Cool23% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#d4ce2d
RGBrgb(212, 206, 45)
HSLhsl(58, 66%, 50%)
CMYKcmyk(0%, 3%, 79%, 17%)
LABlab(80.9 -14.9 73.6)
LCHlch(80.9 75.1 101.5)
OKLCHoklch(0.830 0.167 107.3)
Decimal13946413
Display P3color(display-p3 0.831 0.808 0.176)

Copy-ready code

/* CSS */
color: #d4ce2d;
background-color: #d4ce2d;
/* Tailwind (arbitrary) */
class="text-[#d4ce2d] bg-[#d4ce2d]"
/* SCSS */
$brand: #d4ce2d;
/* SwiftUI */
Color(red: 0.831, green: 0.808, blue: 0.176)
/* Android */
Color.parseColor("#d4ce2d")
/* Flutter */
Color(0xFFD4CE2D)
/* Python / OpenCV (BGR) */
(45, 206, 212)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #d4ce2d · 12.67:1
Use #000000AAA at every size.
Aa
White text · 1.66:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.67:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d4ce2d as text scores 1.66:1 on white and 12.67:1 on black.

Accessibility — WCAG contrast

Aa
#d4ce2d on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#d4ce2d on black: 12.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E0C600
deuteranopia · #E3CC3B
tritanopia · #E4C0B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d4ce2d 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.

#FBFBF3
#F8F7E8
#F1F0CB
#ECE9A2
#E2DE73
#D9D345
#d4ce2d
#A9A423
#87841C
#626018
#3D3C0F
Base = 600Lightest = 50 · #FBFBF3Darkest = 950 · #3D3C0F
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F8F7E8;
  --brand-200: #F1F0CB;
  --brand-300: #ECE9A2;
  --brand-400: #E2DE73;
  --brand-500: #D9D345;
  --brand-600: #d4ce2d;
  --brand-700: #A9A423;
  --brand-800: #87841C;
  --brand-900: #626018;
  --brand-950: #3D3C0F;
  --brand: #d4ce2d;
  --brand-ink: #000000;
}

Colors that work with #d4ce2d

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EDEBC0
Hairlines and dividers
Muted text#9B984B
Captions on the surface
Accent#285BD9
Second voice, not a rival
Dark variant#6A6716
Hover, pressed, headers
Light variant#FBFAEA
Selected rows, tints
Dark surface#242414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #d4ce2d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#2D33D4
Analogous left#D47A2D
Analogous right#87D42D
Split-complement 1#2D87D4
Split-complement 2#7A2DD4
Triadic 1#2DD4CE
Triadic 2#CE2DD4
Tetradic#2DD47A

RGB percentages

Red83.1%
Green80.8%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow78.8%
Key (black)16.9%

Color previews

#d4ce2d text on a black background

contrast 12.67:1

Card sample

#d4ce2d text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 206, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 206, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4ce2d;
background: linear-gradient(135deg, #d4ce2d, #6BD42D);

Monochromatic scale

Palettes built from #d4ce2d

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.

#d4ce2d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#d4ce2d, answered

What color is #d4ce2d?

#d4ce2d is a balanced vivid yellow, closest to Gold (ΔE2000 9.2). It sits at 58° on the hue wheel with 66% saturation and 50% lightness, which reads as warm.

What is the RGB value of #d4ce2d?

rgb(212, 206, 45) — 212 red, 206 green and 45 blue out of 255, or 83.1% / 80.8% / 17.6% by channel.

Is #d4ce2d a light or a dark color?

It is a light color. Relative luminance is 0.5833 and perceived brightness is 77%, so black text on it reaches 12.67:1.

Should I use black or white text on #d4ce2d?

Black. It scores 12.67:1 against #d4ce2d, versus 1.66:1 for white — AAA at any size.

What is the complementary color of #d4ce2d?

#2D33D4 sits directly opposite on the wheel. Softer options are the split-complements #2D87D4 and #7A2DD4, which give the same contrast with far less vibration.

What colors go well with #d4ce2d?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B984B for secondary text, #285BD9 as an accent and #6A6716 for hover and pressed states. For a palette, the analogous pair #D47A2D and #87D42D stays calm, while #2D33D4 is the loudest partner.

What is #d4ce2d in CMYK for printing?

cmyk(0%, 3%, 79%, 17%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #d4ce2d warm or cool?

Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D49A2D; nudged cooler, #9ED72B.

Work with #d4ce2d in the Color Lab