Skip to content

#cdcd68

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

RGB
205, 205, 104
HSL
60°, 50%, 61%
CMYK
0, 0, 49, 20
Luminance
0.5764

Every format

HEX#cdcd68
RGBrgb(205, 205, 104)
HSLhsl(60, 50%, 61%)
CMYKcmyk(0%, 0%, 49%, 20%)
LABlab(80.5 -13.8 49.8)
LCHlch(80.5 51.7 105.5)
OKLCHoklch(0.827 0.124 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue40.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow49.3%
Key (black)19.6%

Color previews

#cdcd68 text on a black background

contrast 12.53:1

Card sample

#cdcd68 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd68

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd68 in the Color Lab