Skip to content

#cfdc5f

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

RGB
207, 220, 95
HSL
66°, 64%, 62%
CMYK
6, 0, 57, 14
Luminance
0.6528

Every format

HEX#cfdc5f
RGBrgb(207, 220, 95)
HSLhsl(66, 64%, 62%)
CMYKcmyk(6%, 0%, 57%, 14%)
LABlab(84.6 -21.2 58.7)
LCHlch(84.6 62.4 109.9)
OKLCHoklch(0.860 0.149 114.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdc5f on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#cfdc5f on black: 14.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green86.3%
Blue37.3%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow56.8%
Key (black)13.7%

Color previews

#cfdc5f text on a black background

contrast 14.06:1

Card sample

#cfdc5f text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 220, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 220, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdc5f;
background: linear-gradient(135deg, #cfdc5f, #7CDC5F);

Monochromatic scale

Palettes built from #cfdc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdc5f in the Color Lab