Skip to content

#cdcb5f

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

RGB
205, 203, 95
HSL
59°, 52%, 59%
CMYK
0, 1, 54, 20
Luminance
0.5652

Every format

HEX#cdcb5f
RGBrgb(205, 203, 95)
HSLhsl(59, 52%, 59%)
CMYKcmyk(0%, 1%, 54%, 20%)
LABlab(79.9 -13.6 53.3)
LCHlch(79.9 55.0 104.3)
OKLCHoklch(0.822 0.131 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcb5f on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#cdcb5f on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green79.6%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow53.7%
Key (black)19.6%

Color previews

#cdcb5f text on a black background

contrast 12.30:1

Card sample

#cdcb5f text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 203, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 203, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdcb5f;
background: linear-gradient(135deg, #cdcb5f, #86CD5F);

Monochromatic scale

Palettes built from #cdcb5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcb5f in the Color Lab