Skip to content

#cfdf02

a dark, electric yellow · cool · closest name: yellow

RGB
207, 223, 2
HSL
64°, 98%, 44%
CMYK
7, 0, 99, 13
Luminance
0.6605

Every format

HEX#cfdf02
RGBrgb(207, 223, 2)
HSLhsl(64, 98%, 44%)
CMYKcmyk(7%, 0%, 99%, 13%)
LABlab(85.0 -26.1 83.8)
LCHlch(85.0 87.7 107.3)
OKLCHoklch(0.862 0.195 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf02 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf02 on black: 14.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green87.5%
Blue0.8%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow99.1%
Key (black)12.5%

Color previews

#cfdf02 text on a black background

contrast 14.21:1

Card sample

#cfdf02 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf02 in the Color Lab