Skip to content

#cdc28b

a light, soft yellow · cool · closest name: tan

RGB
205, 194, 139
HSL
50°, 40%, 68%
CMYK
0, 5, 32, 20
Luminance
0.5343

Every format

HEX#cdc28b
RGBrgb(205, 194, 139)
HSLhsl(50, 40%, 68%)
CMYKcmyk(0%, 5%, 32%, 20%)
LABlab(78.1 -4.5 29.1)
LCHlch(78.1 29.4 98.7)
OKLCHoklch(0.810 0.073 98.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdc28b on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#cdc28b on black: 11.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green76.1%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow32.2%
Key (black)19.6%

Color previews

#cdc28b text on a black background

contrast 11.69:1

Card sample

#cdc28b text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdc28b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdc28b in the Color Lab