Skip to content

#cfda2f

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

RGB
207, 218, 47
HSL
64°, 70%, 52%
CMYK
5, 0, 78, 15
Luminance
0.6361

Every format

HEX#cfda2f
RGBrgb(207, 218, 47)
HSLhsl(64, 70%, 52%)
CMYKcmyk(5%, 0%, 78%, 15%)
LABlab(83.8 -22.9 75.4)
LCHlch(83.8 78.8 106.9)
OKLCHoklch(0.852 0.179 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfda2f on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#cfda2f on black: 13.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green85.5%
Blue18.4%

CMYK percentages

Cyan5.0%
Magenta0.0%
Yellow78.4%
Key (black)14.5%

Color previews

#cfda2f text on a black background

contrast 13.72:1

Card sample

#cfda2f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 218, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 218, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfda2f;
background: linear-gradient(135deg, #cfda2f, #5DDA2F);

Monochromatic scale

Palettes built from #cfda2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfda2f in the Color Lab