Skip to content

#cfdf56

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

RGB
207, 223, 86
HSL
67°, 68%, 61%
CMYK
7, 0, 61, 13
Luminance
0.6671

Every format

HEX#cfdf56
RGBrgb(207, 223, 86)
HSLhsl(67, 68%, 61%)
CMYKcmyk(7%, 0%, 61%, 13%)
LABlab(85.4 -23.3 63.3)
LCHlch(85.4 67.5 110.2)
OKLCHoklch(0.866 0.160 115.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green87.5%
Blue33.7%

CMYK percentages

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

Color previews

#cfdf56 text on a black background

contrast 14.34:1

Card sample

#cfdf56 text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf56 in the Color Lab