Skip to content

#cdcb82

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

RGB
205, 203, 130
HSL
58°, 43%, 66%
CMYK
0, 1, 37, 20
Luminance
0.5730

Every format

HEX#cdcb82
RGBrgb(205, 203, 130)
HSLhsl(58, 43%, 66%)
CMYKcmyk(0%, 1%, 37%, 20%)
LABlab(80.3 -10.2 36.7)
LCHlch(80.3 38.1 105.5)
OKLCHoklch(0.827 0.094 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcb82 on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cdcb82 on black: 12.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green79.6%
Blue51.0%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow36.6%
Key (black)19.6%

Color previews

#cdcb82 text on a black background

contrast 12.46:1

Card sample

#cdcb82 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcb82

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcb82 in the Color Lab