Skip to content

#cfdf18

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

RGB
207, 223, 24
HSL
65°, 81%, 48%
CMYK
7, 0, 89, 13
Luminance
0.6611

Every format

HEX#cfdf18
RGBrgb(207, 223, 24)
HSLhsl(65, 81%, 48%)
CMYKcmyk(7%, 0%, 89%, 13%)
LABlab(85.0 -25.9 81.5)
LCHlch(85.0 85.5 107.6)
OKLCHoklch(0.862 0.192 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green87.5%
Blue9.4%

CMYK percentages

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

Color previews

#cfdf18 text on a black background

contrast 14.22:1

Card sample

#cfdf18 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfdf18

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf18 in the Color Lab