Skip to content

#cdb52f

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

RGB
205, 181, 47
HSL
51°, 63%, 49%
CMYK
0, 12, 77, 20
Luminance
0.4623

At a glance

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

Hex
#cdb52f
Hue
51°
yellow
Saturation
63%
vivid
Lightness
49%
balanced
Brightness
80%
HSV value
Perceived
70%
weighted brightness
Luminance
0.4623
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.25:1
Closest name
Goldenrod
ΔE2000 8.7
Where it sits
Hue51° of 360°
Saturation63%
Lightness49%
Temperature
Warm ← → Cool17% 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#cdb52f
RGBrgb(205, 181, 47)
HSLhsl(51, 63%, 49%)
CMYKcmyk(0%, 12%, 77%, 20%)
LABlab(73.7 -5.1 66.3)
LCHlch(73.7 66.5 94.4)
OKLCHoklch(0.771 0.146 98.5)
Decimal13481263
Display P3color(display-p3 0.804 0.710 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdb52f on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#cdb52f on black: 10.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C7B010
deuteranopia · #CEB938
tritanopia · #DDA79C

Color scale — 50 to 950

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

#FBFAF4
#F7F5E8
#F0EBCC
#EADFA4
#E0D076
#D5C048
#cdb52f
#A69326
#85751E
#61561A
#3C3610
Base = 600Lightest = 50 · #FBFAF4Darkest = 950 · #3C3610
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F5E8;
  --brand-200: #F0EBCC;
  --brand-300: #EADFA4;
  --brand-400: #E0D076;
  --brand-500: #D5C048;
  --brand-600: #cdb52f;
  --brand-700: #A69326;
  --brand-800: #85751E;
  --brand-900: #61561A;
  --brand-950: #3C3610;
  --brand: #cdb52f;
  --brand-ink: #000000;
}

Colors that work with #cdb52f

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#EDE6C0
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#2A6DD2
Second voice, not a rival
Dark variant#685C18
Hover, pressed, headers
Light variant#FAF8EA
Selected rows, tints
Dark surface#242214
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 #cdb52f

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#2F47CD
Analogous left#CD662F
Analogous right#96CD2F
Split-complement 1#2F96CD
Split-complement 2#662FCD
Triadic 1#2FCDB5
Triadic 2#B52FCD
Tetradic#2FCD66

RGB percentages

Red80.4%
Green71.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta11.7%
Yellow77.1%
Key (black)19.6%

Color previews

#cdb52f text on a black background

contrast 10.25:1

Card sample

#cdb52f text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdb52f

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.

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

#cdb52f, answered

What color is #cdb52f?

#cdb52f is a balanced vivid yellow, closest to Goldenrod (ΔE2000 8.7). It sits at 51° on the hue wheel with 63% saturation and 49% lightness, which reads as warm.

What is the RGB value of #cdb52f?

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

Is #cdb52f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4623 and perceived brightness is 70%, so black text on it reaches 10.25:1.

Should I use black or white text on #cdb52f?

Black. It scores 10.25:1 against #cdb52f, versus 2.05:1 for white — AAA at any size.

What is the complementary color of #cdb52f?

#2F47CD sits directly opposite on the wheel. Softer options are the split-complements #2F96CD and #662FCD, which give the same contrast with far less vibration.

What colors go well with #cdb52f?

For interface work: #FAF9F4 as the surface, #EDE6C0 for borders, #9B8F4B for secondary text, #2A6DD2 as an accent and #685C18 for hover and pressed states. For a palette, the analogous pair #CD662F and #96CD2F stays calm, while #2F47CD is the loudest partner.

What is #cdb52f in CMYK for printing?

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

Is #cdb52f warm or cool?

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

Work with #cdb52f in the Color Lab