Skip to content

#cfdf5f

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

RGB
207, 223, 95
HSL
68°, 67%, 62%
CMYK
7, 0, 57, 13
Luminance
0.6687

Every format

HEX#cfdf5f
RGBrgb(207, 223, 95)
HSLhsl(68, 67%, 62%)
CMYKcmyk(7%, 0%, 57%, 13%)
LABlab(85.4 -22.6 59.6)
LCHlch(85.4 63.7 110.8)
OKLCHoklch(0.867 0.153 115.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf5f on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf5f on black: 14.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green87.5%
Blue37.3%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow57.4%
Key (black)12.5%

Color previews

#cfdf5f text on a black background

contrast 14.37:1

Card sample

#cfdf5f text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf5f in the Color Lab