Skip to content

#cfd147

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

RGB
207, 209, 71
HSL
61°, 60%, 55%
CMYK
1, 0, 66, 18
Luminance
0.5932

Every format

HEX#cfd147
RGBrgb(207, 209, 71)
HSLhsl(61, 60%, 55%)
CMYKcmyk(1%, 0%, 66%, 18%)
LABlab(81.5 -17.4 65.2)
LCHlch(81.5 67.5 104.9)
OKLCHoklch(0.834 0.156 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd147 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#cfd147 on black: 12.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green82.0%
Blue27.8%

CMYK percentages

Cyan1.0%
Magenta0.0%
Yellow66.0%
Key (black)18.0%

Color previews

#cfd147 text on a black background

contrast 12.86:1

Card sample

#cfd147 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 209, 71, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 209, 71, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd147;
background: linear-gradient(135deg, #cfd147, #73D147);

Monochromatic scale

Palettes built from #cfd147

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfd147 in the Color Lab