Skip to content

#d3cf4b

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

RGB
211, 207, 75
HSL
58°, 61%, 56%
CMYK
0, 2, 65, 17
Luminance
0.5898

At a glance

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

Hex
#d3cf4b
Hue
58°
yellow
Saturation
61%
vivid
Lightness
56%
balanced
Brightness
83%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5898
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.80:1
Closest name
Khaki
ΔE2000 8.1
Where it sits
Hue58° of 360°
Saturation61%
Lightness56%
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#d3cf4b
RGBrgb(211, 207, 75)
HSLhsl(58, 61%, 56%)
CMYKcmyk(0%, 2%, 65%, 17%)
LABlab(81.3 -14.5 63.6)
LCHlch(81.3 65.2 102.8)
OKLCHoklch(0.834 0.151 107.6)
Decimal13881163
Display P3color(display-p3 0.827 0.812 0.294)

Copy-ready code

/* CSS */
color: #d3cf4b;
background-color: #d3cf4b;
/* Tailwind (arbitrary) */
class="text-[#d3cf4b] bg-[#d3cf4b]"
/* SCSS */
$brand: #d3cf4b;
/* SwiftUI */
Color(red: 0.827, green: 0.812, blue: 0.294)
/* Android */
Color.parseColor("#d3cf4b")
/* Flutter */
Color(0xFFD3CF4B)
/* Python / OpenCV (BGR) */
(75, 207, 211)

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 #d3cf4b · 12.80:1
Use #000000AAA at every size.
Aa
White text · 1.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.80:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d3cf4b as text scores 1.64:1 on white and 12.80:1 on black.

Accessibility — WCAG contrast

Aa
#d3cf4b on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d3cf4b on black: 12.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFC739
deuteranopia · #E2CC53
tritanopia · #E2C2B4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d3cf4b 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
#F7F7E8
#F0EECC
#E9E7A5
#DEDB78
#d3cf4b
#C5C030
#A4A028
#838020
#5F5D1B
#3C3A11
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3C3A11
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F7E8;
  --brand-200: #F0EECC;
  --brand-300: #E9E7A5;
  --brand-400: #DEDB78;
  --brand-500: #d3cf4b;
  --brand-600: #C5C030;
  --brand-700: #A4A028;
  --brand-800: #838020;
  --brand-900: #5F5D1B;
  --brand-950: #3C3A11;
  --brand: #d3cf4b;
  --brand-ink: #000000;
}

Colors that work with #d3cf4b

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#9B994B
Captions on the surface
Accent#476FD7
Second voice, not a rival
Dark variant#666419
Hover, pressed, headers
Light variant#FAFAEB
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 #d3cf4b

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#4B4FD3
Analogous left#D38B4B
Analogous right#93D34B
Split-complement 1#4B93D3
Split-complement 2#8B4BD3
Triadic 1#4BD3CF
Triadic 2#CF4BD3
Tetradic#4BD38B

RGB percentages

Red82.7%
Green81.2%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta1.9%
Yellow64.5%
Key (black)17.3%

Color previews

#d3cf4b text on a black background

contrast 12.80:1

Card sample

#d3cf4b text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 207, 75, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 207, 75, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d3cf4b;
background: linear-gradient(135deg, #d3cf4b, #7CD34B);

Monochromatic scale

Palettes built from #d3cf4b

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.

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

#d3cf4b, answered

What color is #d3cf4b?

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

What is the RGB value of #d3cf4b?

rgb(211, 207, 75) — 211 red, 207 green and 75 blue out of 255, or 82.7% / 81.2% / 29.4% by channel.

Is #d3cf4b a light or a dark color?

It is a light color. Relative luminance is 0.5898 and perceived brightness is 78%, so black text on it reaches 12.80:1.

Should I use black or white text on #d3cf4b?

Black. It scores 12.80:1 against #d3cf4b, versus 1.64:1 for white — AAA at any size.

What is the complementary color of #d3cf4b?

#4B4FD3 sits directly opposite on the wheel. Softer options are the split-complements #4B93D3 and #8B4BD3, which give the same contrast with far less vibration.

What colors go well with #d3cf4b?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #476FD7 as an accent and #666419 for hover and pressed states. For a palette, the analogous pair #D38B4B and #93D34B stays calm, while #4B4FD3 is the loudest partner.

What is #d3cf4b in CMYK for printing?

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

Is #d3cf4b 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 #D3A04B; nudged cooler, #A6D549.

Work with #d3cf4b in the Color Lab