Skip to content

#cdc67f

a light, soft yellow · warm · closest name: Dark Khaki

RGB
205, 198, 127
HSL
55°, 44%, 65%
CMYK
0, 3, 38, 20
Luminance
0.5490

At a glance

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

Hex
#cdc67f
Hue
55°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5490
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
11.98:1
Closest name
Dark Khaki
ΔE2000 4.2
Where it sits
Hue55° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool21% 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#cdc67f
RGBrgb(205, 198, 127)
HSLhsl(55, 44%, 65%)
CMYKcmyk(0%, 3%, 38%, 20%)
LABlab(79.0 -7.9 36.5)
LCHlch(79.0 37.3 102.3)
OKLCHoklch(0.816 0.092 103.4)
Decimal13485695
Display P3color(display-p3 0.804 0.776 0.498)

Copy-ready code

/* CSS */
color: #cdc67f;
background-color: #cdc67f;
/* Tailwind (arbitrary) */
class="text-[#cdc67f] bg-[#cdc67f]"
/* SCSS */
$brand: #cdc67f;
/* SwiftUI */
Color(red: 0.804, green: 0.776, blue: 0.498)
/* Android */
Color.parseColor("#cdc67f")
/* Flutter */
Color(0xFFCDC67F)
/* Python / OpenCV (BGR) */
(127, 198, 205)

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

Accessibility — WCAG contrast

Aa
#cdc67f on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#cdc67f on black: 11.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D2C17A
deuteranopia · #D5C582
tritanopia · #D8BDB4

Color scale — 50 to 950

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

#FAF9F5
#F5F4EA
#EBE8D1
#DFDBAE
#cdc67f
#C0B75E
#B0A645
#938B39
#756F2E
#565125
#363317
Base = 400Lightest = 50 · #FAF9F5Darkest = 950 · #363317
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F4EA;
  --brand-200: #EBE8D1;
  --brand-300: #DFDBAE;
  --brand-400: #cdc67f;
  --brand-500: #C0B75E;
  --brand-600: #B0A645;
  --brand-700: #938B39;
  --brand-800: #756F2E;
  --brand-900: #565125;
  --brand-950: #363317;
  --brand: #cdc67f;
  --brand-ink: #000000;
}

Colors that work with #cdc67f

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#E8E5C4
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#355697
Second voice, not a rival
Dark variant#5C5724
Hover, pressed, headers
Light variant#F8F7ED
Selected rows, tints
Dark surface#242314
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 #cdc67f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • White 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#7F86CD
Analogous left#CD9F7F
Analogous right#ADCD7F
Split-complement 1#7FADCD
Split-complement 2#9F7FCD
Triadic 1#7FCDC6
Triadic 2#C67FCD
Tetradic#7FCD9F

RGB percentages

Red80.4%
Green77.6%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta3.4%
Yellow38.0%
Key (black)19.6%

Color previews

#cdc67f text on a black background

contrast 11.98:1

Card sample

#cdc67f text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 198, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 198, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdc67f;
background: linear-gradient(135deg, #cdc67f, #A0CD7F);

Monochromatic scale

Palettes built from #cdc67f

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.

#cdc67f 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#cdc67f, answered

What color is #cdc67f?

#cdc67f is a light soft yellow, closest to Dark Khaki (ΔE2000 4.2). It sits at 55° on the hue wheel with 44% saturation and 65% lightness, which reads as warm.

What is the RGB value of #cdc67f?

rgb(205, 198, 127) — 205 red, 198 green and 127 blue out of 255, or 80.4% / 77.6% / 49.8% by channel.

Is #cdc67f a light or a dark color?

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

Should I use black or white text on #cdc67f?

Black. It scores 11.98:1 against #cdc67f, versus 1.75:1 for white — AAA at any size.

What is the complementary color of #cdc67f?

#7F86CD sits directly opposite on the wheel. Softer options are the split-complements #7FADCD and #9F7FCD, which give the same contrast with far less vibration.

What colors go well with #cdc67f?

For interface work: #FAFAF4 as the surface, #E8E5C4 for borders, #9B944B for secondary text, #355697 as an accent and #5C5724 for hover and pressed states. For a palette, the analogous pair #CD9F7F and #ADCD7F stays calm, while #7F86CD is the loudest partner.

What is #cdc67f in CMYK for printing?

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

Is #cdc67f warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CDAA7F; nudged cooler, #B8CF7D.

Work with #cdc67f in the Color Lab