Skip to content

#cfdf7e

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

RGB
207, 223, 126
HSL
70°, 60%, 68%
CMYK
7, 0, 44, 13
Luminance
0.6755

Every format

HEX#cfdf7e
RGBrgb(207, 223, 126)
HSLhsl(70, 60%, 68%)
CMYKcmyk(7%, 0%, 44%, 13%)
LABlab(85.8 -19.8 45.6)
LCHlch(85.8 49.7 113.5)
OKLCHoklch(0.871 0.123 116.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green87.5%
Blue49.4%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow43.5%
Key (black)12.5%

Color previews

#cfdf7e text on a black background

contrast 14.51:1

Card sample

#cfdf7e text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf7e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf7e in the Color Lab