Skip to content

#cdcb8b

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

RGB
205, 203, 139
HSL
58°, 40%, 68%
CMYK
0, 1, 32, 20
Luminance
0.5756

Every format

HEX#cdcb8b
RGBrgb(205, 203, 139)
HSLhsl(58, 40%, 68%)
CMYKcmyk(0%, 1%, 32%, 20%)
LABlab(80.5 -9.1 32.3)
LCHlch(80.5 33.5 105.8)
OKLCHoklch(0.829 0.084 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcb8b on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#cdcb8b on black: 12.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green79.6%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow32.2%
Key (black)19.6%

Color previews

#cdcb8b text on a black background

contrast 12.51:1

Card sample

#cdcb8b text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcb8b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcb8b in the Color Lab