Skip to content

#cdb545

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

RGB
205, 181, 69
HSL
49°, 58%, 54%
CMYK
0, 12, 66, 20
Luminance
0.4646

At a glance

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

Hex
#cdb545
Hue
49°
yellow
Saturation
58%
vivid
Lightness
54%
balanced
Brightness
80%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4646
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.29:1
Closest name
Dark Khaki
ΔE2000 7.4
Where it sits
Hue49° of 360°
Saturation58%
Lightness54%
Temperature
Warm ← → Cool16% 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#cdb545
RGBrgb(205, 181, 69)
HSLhsl(49, 58%, 54%)
CMYKcmyk(0%, 12%, 66%, 20%)
LABlab(73.8 -4.1 58.1)
LCHlch(73.8 58.3 94.0)
OKLCHoklch(0.773 0.132 97.0)
Decimal13481285
Display P3color(display-p3 0.804 0.710 0.271)

Copy-ready code

/* CSS */
color: #cdb545;
background-color: #cdb545;
/* Tailwind (arbitrary) */
class="text-[#cdb545] bg-[#cdb545]"
/* SCSS */
$brand: #cdb545;
/* SwiftUI */
Color(red: 0.804, green: 0.710, blue: 0.271)
/* Android */
Color.parseColor("#cdb545")
/* Flutter */
Color(0xFFCDB545)
/* Python / OpenCV (BGR) */
(69, 181, 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 #cdb545 · 10.29:1
Use #000000AAA at every size.
Aa
White text · 2.04:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.29:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cdb545 as text scores 2.04:1 on white and 10.29:1 on black.

Accessibility — WCAG contrast

Aa
#cdb545 on white: 2.04:1
AA ✗ fail · AA-large · AAA
Aa
#cdb545 on black: 10.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C6B137
deuteranopia · #CDB94B
tritanopia · #DDA89E

Color scale — 50 to 950

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

#FBFAF4
#F7F4E9
#EFE9CD
#E7DCA7
#DBCA7A
#cdb545
#C1A834
#A18C2B
#817023
#5E521D
#3B3312
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3B3312
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F4E9;
  --brand-200: #EFE9CD;
  --brand-300: #E7DCA7;
  --brand-400: #DBCA7A;
  --brand-500: #cdb545;
  --brand-600: #C1A834;
  --brand-700: #A18C2B;
  --brand-800: #817023;
  --brand-900: #5E521D;
  --brand-950: #3B3312;
  --brand: #cdb545;
  --brand-ink: #000000;
}

Colors that work with #cdb545

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#FAF9F4
Tinted page background
Border#EDE5C0
Hairlines and dividers
Muted text#9B8D4B
Captions on the surface
Accent#407ED2
Second voice, not a rival
Dark variant#64571B
Hover, pressed, headers
Light variant#FAF7EB
Selected rows, tints
Dark surface#242114
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 #cdb545

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#455DCD
Analogous left#CD7145
Analogous right#A1CD45
Split-complement 1#45A1CD
Split-complement 2#7145CD
Triadic 1#45CDB5
Triadic 2#B545CD
Tetradic#45CD71

RGB percentages

Red80.4%
Green71.0%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta11.7%
Yellow66.3%
Key (black)19.6%

Color previews

#cdb545 text on a black background

contrast 10.29:1

Card sample

#cdb545 text on a white background

contrast 2.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdb545

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.

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

#cdb545, answered

What color is #cdb545?

#cdb545 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7.4). It sits at 49° on the hue wheel with 58% saturation and 54% lightness, which reads as warm.

What is the RGB value of #cdb545?

rgb(205, 181, 69) — 205 red, 181 green and 69 blue out of 255, or 80.4% / 71% / 27.1% by channel.

Is #cdb545 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4646 and perceived brightness is 71%, so black text on it reaches 10.29:1.

Should I use black or white text on #cdb545?

Black. It scores 10.29:1 against #cdb545, versus 2.04:1 for white — AAA at any size.

What is the complementary color of #cdb545?

#455DCD sits directly opposite on the wheel. Softer options are the split-complements #45A1CD and #7145CD, which give the same contrast with far less vibration.

What colors go well with #cdb545?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8D4B for secondary text, #407ED2 as an accent and #64571B for hover and pressed states. For a palette, the analogous pair #CD7145 and #A1CD45 stays calm, while #455DCD is the loudest partner.

What is #cdb545 in CMYK for printing?

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

Is #cdb545 warm or cool?

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

Work with #cdb545 in the Color Lab