#cdab2d
a balanced, vivid yellow · warm · closest name: Goldenrod
At a glance
Every number on this page in one read: what #cdab2d is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #cdab2d |
| RGB | rgb(205, 171, 45) |
| HSL | hsl(47, 64%, 49%) |
| CMYK | cmyk(0%, 17%, 78%, 20%) |
| LAB | lab(71.1 0.0 64.6) |
| LCH | lch(71.1 64.6 90.0) |
| OKLCH | oklch(0.751 0.141 92.9) |
| Decimal | 13478701 |
| Display P3 | color(display-p3 0.804 0.671 0.176) |
Copy-ready code
/* CSS */
color: #cdab2d;
background-color: #cdab2d;
/* Tailwind (arbitrary) */
class="text-[#cdab2d] bg-[#cdab2d]"
/* SCSS */
$brand: #cdab2d;
/* SwiftUI */
Color(red: 0.804, green: 0.671, blue: 0.176)
/* Android */
Color.parseColor("#cdab2d")
/* Flutter */
Color(0xFFCDAB2D)
/* Python / OpenCV (BGR) */
(45, 171, 205)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #cdab2d 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.
:root {
--brand-50: #FBFAF4;
--brand-100: #F7F4E8;
--brand-200: #F1E9CB;
--brand-300: #EBDBA3;
--brand-400: #E1CA75;
--brand-500: #D7B847;
--brand-600: #cdab2d;
--brand-700: #A78B25;
--brand-800: #86701D;
--brand-900: #615219;
--brand-950: #3D3310;
--brand: #cdab2d;
--brand-ink: #000000;
}Colors that work with #cdab2d
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #cdab2d
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #2D4FCD | Directly opposite — maximum tension | |
| Analogous left | #CD5B2D | Neighbour, quieter | |
| Analogous right | #9FCD2D | Neighbour, quieter | |
| Split-complement 1 | #2D9FCD | Contrast without the clash | |
| Split-complement 2 | #5B2DCD | Contrast without the clash | |
| Triadic 1 | #2DCDAB | Even thirds — balanced and loud | |
| Triadic 2 | #AB2DCD | Even thirds — balanced and loud | |
| Tetradic | #2DCD5B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cdab2d text on a black background
contrast 9.46:1
#cdab2d text on a white background
contrast 2.22:1
CSS3 live lab
The quick brown fox
color: #cdab2d;
background-color: #cdab2d;
Glowing headline
text-shadow: 2px 2px 8px #cdab2d;
Soft neon halo
text-shadow: 0 0 14px rgba(205, 171, 45, 0.45);
box-shadow: 0 12px 32px -8px rgba(205, 171, 45, 0.45);
border: 3px solid #cdab2d; background: linear-gradient(135deg, #cdab2d, #84CD2D);
Monochromatic scale
Palettes built from #cdab2d
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.
Closest color with a full write-up: Goldenrod (#daa520) — ΔE2000 5.3 away, with its history, psychology and brand usage.
#cdab2d in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#cdab2d, answered
What color is #cdab2d?
#cdab2d is a balanced vivid yellow, closest to Goldenrod (ΔE2000 5.3). It sits at 47° on the hue wheel with 64% saturation and 49% lightness, which reads as warm.
What is the RGB value of #cdab2d?
rgb(205, 171, 45) — 205 red, 171 green and 45 blue out of 255, or 80.4% / 67.1% / 17.6% by channel.
Is #cdab2d a light or a dark color?
It is a mid-tone. Relative luminance is 0.4229 and perceived brightness is 68%, so black text on it reaches 9.46:1.
Should I use black or white text on #cdab2d?
Black. It scores 9.46:1 against #cdab2d, versus 2.22:1 for white — AAA at any size.
What is the complementary color of #cdab2d?
#2D4FCD sits directly opposite on the wheel. Softer options are the split-complements #2D9FCD and #5B2DCD, which give the same contrast with far less vibration.
What colors go well with #cdab2d?
For interface work: #FAF9F4 as the surface, #EDE3C0 for borders, #9B8A4B for secondary text, #2877D2 as an accent and #695717 for hover and pressed states. For a palette, the analogous pair #CD5B2D and #9FCD2D stays calm, while #2D4FCD is the loudest partner.
What is #cdab2d in CMYK for printing?
cmyk(0%, 17%, 78%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #cdab2d warm or cool?
Warm — it scores 14 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD892D; nudged cooler, #B6CF2A.