Skip to content

#cdba3b

a balanced, vivid yellow · cool · closest name: khaki

RGB
205, 186, 59
HSL
52°, 59%, 52%
CMYK
0, 9, 71, 20
Luminance
0.4841

Every format

HEX#cdba3b
RGBrgb(205, 186, 59)
HSLhsl(52, 59%, 52%)
CMYKcmyk(0%, 9%, 71%, 20%)
LABlab(75.1 -7.2 63.4)
LCHlch(75.1 63.8 96.5)
OKLCHoklch(0.783 0.143 100.6)

Copy-ready code

/* CSS */
color: #cdba3b;
background-color: #cdba3b;
/* Tailwind (arbitrary) */
class="text-[#cdba3b] bg-[#cdba3b]"
/* SCSS */
$brand: #cdba3b;
/* SwiftUI */
Color(red: 0.804, green: 0.729, blue: 0.231)
/* Android */
Color.parseColor("#cdba3b")

Accessibility — WCAG contrast

Aa
#cdba3b on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#cdba3b on black: 10.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green72.9%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow71.2%
Key (black)19.6%

Color previews

#cdba3b text on a black background

contrast 10.68:1

Card sample

#cdba3b text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdba3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdba3b in the Color Lab