Skip to content

#cfdf78

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

RGB
207, 223, 120
HSL
69°, 62%, 67%
CMYK
7, 0, 46, 13
Luminance
0.6740

Every format

HEX#cfdf78
RGBrgb(207, 223, 120)
HSLhsl(69, 62%, 67%)
CMYKcmyk(7%, 0%, 46%, 13%)
LABlab(85.7 -20.4 48.4)
LCHlch(85.7 52.5 112.9)
OKLCHoklch(0.870 0.129 116.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf78 on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf78 on black: 14.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green87.5%
Blue47.1%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow46.2%
Key (black)12.5%

Color previews

#cfdf78 text on a black background

contrast 14.48:1

Card sample

#cfdf78 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 223, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 223, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdf78;
background: linear-gradient(135deg, #cfdf78, #8BDF78);

Monochromatic scale

Palettes built from #cfdf78

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf78 in the Color Lab