Skip to content

#d2cf0d

a dark, electric yellow · warm · closest name: Gold

RGB
210, 207, 13
HSL
59°, 88%, 44%
CMYK
0, 1, 94, 18
Luminance
0.5836

At a glance

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

Hex
#d2cf0d
Hue
59°
yellow
Saturation
88%
electric
Lightness
44%
dark
Brightness
82%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5836
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
12.67:1
Closest name
Gold
ΔE2000 9.5
Where it sits
Hue59° of 360°
Saturation88%
Lightness44%
Temperature
Warm ← → Cool24% 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#d2cf0d
RGBrgb(210, 207, 13)
HSLhsl(59, 88%, 44%)
CMYKcmyk(0%, 1%, 94%, 18%)
LABlab(80.9 -17.0 79.8)
LCHlch(80.9 81.6 102.0)
OKLCHoklch(0.830 0.178 108.7)
Decimal13815565
Display P3color(display-p3 0.824 0.812 0.051)

Copy-ready code

/* CSS */
color: #d2cf0d;
background-color: #d2cf0d;
/* Tailwind (arbitrary) */
class="text-[#d2cf0d] bg-[#d2cf0d]"
/* SCSS */
$brand: #d2cf0d;
/* SwiftUI */
Color(red: 0.824, green: 0.812, blue: 0.051)
/* Android */
Color.parseColor("#d2cf0d")
/* Flutter */
Color(0xFFD2CF0D)
/* Python / OpenCV (BGR) */
(13, 207, 210)

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 #d2cf0d · 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: #d2cf0d as text scores 1.66:1 on white and 12.67:1 on black.

Accessibility — WCAG contrast

Aa
#d2cf0d on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf0d on black: 12.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E1C600
deuteranopia · #E4CB2A
tritanopia · #E2C1B0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d2cf0d is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFDF2
#FAFAE5
#F8F7C4
#F8F795
#F5F361
#F2EF2C
#E6E30E
#d2cf0d
#9A970A
#6F6D0B
#454407
Base = 700Lightest = 50 · #FDFDF2Darkest = 950 · #454407
:root {
  --brand-50: #FDFDF2;
  --brand-100: #FAFAE5;
  --brand-200: #F8F7C4;
  --brand-300: #F8F795;
  --brand-400: #F5F361;
  --brand-500: #F2EF2C;
  --brand-600: #E6E30E;
  --brand-700: #d2cf0d;
  --brand-800: #9A970A;
  --brand-900: #6F6D0B;
  --brand-950: #454407;
  --brand: #d2cf0d;
  --brand-ink: #000000;
}

Colors that work with #d2cf0d

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#EDECC0
Hairlines and dividers
Muted text#9B9A4B
Captions on the surface
Accent#093FD6
Second voice, not a rival
Dark variant#787607
Hover, pressed, headers
Light variant#FEFDE7
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 #d2cf0d

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#0D10D2
Analogous left#D26C0D
Analogous right#72D20D
Split-complement 1#0D72D2
Split-complement 2#6C0DD2
Triadic 1#0DD2CF
Triadic 2#CF0DD2
Tetradic#0DD26C

RGB percentages

Red82.4%
Green81.2%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow93.8%
Key (black)17.6%

Color previews

#d2cf0d text on a black background

contrast 12.67:1

Card sample

#d2cf0d text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 207, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 207, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cf0d;
background: linear-gradient(135deg, #d2cf0d, #52D20D);

Monochromatic scale

Palettes built from #d2cf0d

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.

#d2cf0d 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d2cf0d, answered

What color is #d2cf0d?

#d2cf0d is a dark electric yellow, closest to Gold (ΔE2000 9.5). It sits at 59° on the hue wheel with 88% saturation and 44% lightness, which reads as warm.

What is the RGB value of #d2cf0d?

rgb(210, 207, 13) — 210 red, 207 green and 13 blue out of 255, or 82.4% / 81.2% / 5.1% by channel.

Is #d2cf0d a light or a dark color?

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

Should I use black or white text on #d2cf0d?

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

What is the complementary color of #d2cf0d?

#0D10D2 sits directly opposite on the wheel. Softer options are the split-complements #0D72D2 and #6C0DD2, which give the same contrast with far less vibration.

What colors go well with #d2cf0d?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B9A4B for secondary text, #093FD6 as an accent and #787607 for hover and pressed states. For a palette, the analogous pair #D26C0D and #72D20D stays calm, while #0D10D2 is the loudest partner.

What is #d2cf0d in CMYK for printing?

cmyk(0%, 1%, 94%, 18%). 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 #d2cf0d warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D2930D; nudged cooler, #8DD40B.

Work with #d2cf0d in the Color Lab