Skip to content

#cdcb8c

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

RGB
205, 203, 140
HSL
58°, 39%, 68%
CMYK
0, 1, 32, 20
Luminance
0.5758

Every format

HEX#cdcb8c
RGBrgb(205, 203, 140)
HSLhsl(58, 39%, 68%)
CMYKcmyk(0%, 1%, 32%, 20%)
LABlab(80.5 -9.0 31.8)
LCHlch(80.5 33.0 105.8)
OKLCHoklch(0.829 0.082 106.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green79.6%
Blue54.9%

CMYK percentages

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

Color previews

#cdcb8c text on a black background

contrast 12.52:1

Card sample

#cdcb8c text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcb8c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcb8c in the Color Lab