Skip to content

#d2dc3f

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

RGB
210, 220, 63
HSL
64°, 69%, 56%
CMYK
5, 0, 71, 14
Luminance
0.6525

At a glance

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

Hex
#d2dc3f
Hue
64°
yellow
Saturation
69%
vivid
Lightness
56%
balanced
Brightness
86%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6525
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
14.05:1
Closest name
Khaki
ΔE2000 9.2
Where it sits
Hue64° of 360°
Saturation69%
Lightness56%
Temperature
Warm ← → Cool28% 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#d2dc3f
RGBrgb(210, 220, 63)
HSLhsl(64, 69%, 56%)
CMYKcmyk(5%, 0%, 71%, 14%)
LABlab(84.6 -21.9 71.3)
LCHlch(84.6 74.6 107.1)
OKLCHoklch(0.860 0.172 113.1)
Decimal13818943
Display P3color(display-p3 0.824 0.863 0.247)

Copy-ready code

/* CSS */
color: #d2dc3f;
background-color: #d2dc3f;
/* Tailwind (arbitrary) */
class="text-[#d2dc3f] bg-[#d2dc3f]"
/* SCSS */
$brand: #d2dc3f;
/* SwiftUI */
Color(red: 0.824, green: 0.863, blue: 0.247)
/* Android */
Color.parseColor("#d2dc3f")
/* Flutter */
Color(0xFFD2DC3F)
/* Python / OpenCV (BGR) */
(63, 220, 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 #d2dc3f · 14.05:1
Use #000000AAA at every size.
Aa
White text · 1.49:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.05:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d2dc3f as text scores 1.49:1 on white and 14.05:1 on black.

Accessibility — WCAG contrast

Aa
#d2dc3f on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#d2dc3f on black: 14.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ECD221
deuteranopia · #ECD54B
tritanopia · #E0CFBE

Color scale — 50 to 950

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

#FBFBF3
#F7F8E7
#EFF2CA
#E9EEA0
#DEE571
#d2dc3f
#C4CF26
#A4AD1F
#838A19
#5F6416
#3C3F0E
Base = 500Lightest = 50 · #FBFBF3Darkest = 950 · #3C3F0E
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F7F8E7;
  --brand-200: #EFF2CA;
  --brand-300: #E9EEA0;
  --brand-400: #DEE571;
  --brand-500: #d2dc3f;
  --brand-600: #C4CF26;
  --brand-700: #A4AD1F;
  --brand-800: #838A19;
  --brand-900: #5F6416;
  --brand-950: #3C3F0E;
  --brand: #d2dc3f;
  --brand-ink: #000000;
}

Colors that work with #d2dc3f

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#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#3A59E1
Second voice, not a rival
Dark variant#666C14
Hover, pressed, headers
Light variant#FAFBE9
Selected rows, tints
Dark surface#232414
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 #d2dc3f

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#493FDC
Analogous left#DC973F
Analogous right#84DC3F
Split-complement 1#3F84DC
Split-complement 2#973FDC
Triadic 1#3FD2DC
Triadic 2#DC3FD2
Tetradic#3FDC97

RGB percentages

Red82.4%
Green86.3%
Blue24.7%

CMYK percentages

Cyan4.5%
Magenta0.0%
Yellow71.4%
Key (black)13.7%

Color previews

#d2dc3f text on a black background

contrast 14.05:1

Card sample

#d2dc3f text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 220, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 220, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2dc3f;
background: linear-gradient(135deg, #d2dc3f, #69DC3F);

Monochromatic scale

Palettes built from #d2dc3f

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.

#d2dc3f 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.

#d2dc3f, answered

What color is #d2dc3f?

#d2dc3f is a balanced vivid yellow, closest to Khaki (ΔE2000 9.2). It sits at 64° on the hue wheel with 69% saturation and 56% lightness, which reads as warm.

What is the RGB value of #d2dc3f?

rgb(210, 220, 63) — 210 red, 220 green and 63 blue out of 255, or 82.4% / 86.3% / 24.7% by channel.

Is #d2dc3f a light or a dark color?

It is a light color. Relative luminance is 0.6525 and perceived brightness is 80%, so black text on it reaches 14.05:1.

Should I use black or white text on #d2dc3f?

Black. It scores 14.05:1 against #d2dc3f, versus 1.49:1 for white — AAA at any size.

What is the complementary color of #d2dc3f?

#493FDC sits directly opposite on the wheel. Softer options are the split-complements #3F84DC and #973FDC, which give the same contrast with far less vibration.

What colors go well with #d2dc3f?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #3A59E1 as an accent and #666C14 for hover and pressed states. For a palette, the analogous pair #DC973F and #84DC3F stays calm, while #493FDC is the loudest partner.

What is #d2dc3f in CMYK for printing?

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

Is #d2dc3f warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DCAC3F; nudged cooler, #99DE3D.

Work with #d2dc3f in the Color Lab