Skip to content

#cfdf2a

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

RGB
207, 223, 42
HSL
65°, 74%, 52%
CMYK
7, 0, 81, 13
Luminance
0.6621

Every format

HEX#cfdf2a
RGBrgb(207, 223, 42)
HSLhsl(65, 74%, 52%)
CMYKcmyk(7%, 0%, 81%, 13%)
LABlab(85.1 -25.4 77.9)
LCHlch(85.1 81.9 108.1)
OKLCHoklch(0.863 0.186 115.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf2a on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf2a on black: 14.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green87.5%
Blue16.5%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow81.2%
Key (black)12.5%

Color previews

#cfdf2a text on a black background

contrast 14.24:1

Card sample

#cfdf2a text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf2a in the Color Lab