Skip to content

#d2cb3c

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

RGB
210, 203, 60
HSL
57°, 63%, 53%
CMYK
0, 3, 71, 18
Luminance
0.5674

At a glance

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

Hex
#d2cb3c
Hue
57°
yellow
Saturation
63%
vivid
Lightness
53%
balanced
Brightness
82%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5674
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.35:1
Closest name
Khaki
ΔE2000 9.4
Where it sits
Hue57° of 360°
Saturation63%
Lightness53%
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#d2cb3c
RGBrgb(210, 203, 60)
HSLhsl(57, 63%, 53%)
CMYKcmyk(0%, 3%, 71%, 18%)
LABlab(80.0 -13.7 68.0)
LCHlch(80.0 69.3 101.4)
OKLCHoklch(0.823 0.157 106.6)
Decimal13814588
Display P3color(display-p3 0.824 0.796 0.235)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cb3c on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#d2cb3c on black: 12.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DCC322
deuteranopia · #DFC946
tritanopia · #E1BEAF

Color scale — 50 to 950

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

#FBFBF4
#F7F6E8
#F0EECC
#EAE7A4
#DFDB76
#d2cb3c
#C7C02E
#A6A026
#85801F
#605D1A
#3C3A10
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3C3A10
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E8;
  --brand-200: #F0EECC;
  --brand-300: #EAE7A4;
  --brand-400: #DFDB76;
  --brand-500: #d2cb3c;
  --brand-600: #C7C02E;
  --brand-700: #A6A026;
  --brand-800: #85801F;
  --brand-900: #605D1A;
  --brand-950: #3C3A10;
  --brand: #d2cb3c;
  --brand-ink: #000000;
}

Colors that work with #d2cb3c

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#9B974B
Captions on the surface
Accent#3766D7
Second voice, not a rival
Dark variant#686418
Hover, pressed, headers
Light variant#FAF9EA
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 #d2cb3c

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#3C43D2
Analogous left#D2803C
Analogous right#8ED23C
Split-complement 1#3C8ED2
Split-complement 2#803CD2
Triadic 1#3CD2CB
Triadic 2#CB3CD2
Tetradic#3CD280

RGB percentages

Red82.4%
Green79.6%
Blue23.5%

CMYK percentages

Cyan0.0%
Magenta3.3%
Yellow71.4%
Key (black)17.6%

Color previews

#d2cb3c text on a black background

contrast 12.35:1

Card sample

#d2cb3c text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 203, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 203, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cb3c;
background: linear-gradient(135deg, #d2cb3c, #75D23C);

Monochromatic scale

Palettes built from #d2cb3c

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.

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

#d2cb3c, answered

What color is #d2cb3c?

#d2cb3c is a balanced vivid yellow, closest to Khaki (ΔE2000 9.4). It sits at 57° on the hue wheel with 63% saturation and 53% lightness, which reads as warm.

What is the RGB value of #d2cb3c?

rgb(210, 203, 60) — 210 red, 203 green and 60 blue out of 255, or 82.4% / 79.6% / 23.5% by channel.

Is #d2cb3c a light or a dark color?

It is a light color. Relative luminance is 0.5674 and perceived brightness is 76%, so black text on it reaches 12.35:1.

Should I use black or white text on #d2cb3c?

Black. It scores 12.35:1 against #d2cb3c, versus 1.70:1 for white — AAA at any size.

What is the complementary color of #d2cb3c?

#3C43D2 sits directly opposite on the wheel. Softer options are the split-complements #3C8ED2 and #803CD2, which give the same contrast with far less vibration.

What colors go well with #d2cb3c?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #3766D7 as an accent and #686418 for hover and pressed states. For a palette, the analogous pair #D2803C and #8ED23C stays calm, while #3C43D2 is the loudest partner.

What is #d2cb3c in CMYK for printing?

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

Is #d2cb3c 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 #D29B3C; nudged cooler, #A3D439.

Work with #d2cb3c in the Color Lab