Skip to content

#cff40c

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

RGB
207, 244, 12
HSL
70°, 91%, 50%
CMYK
15, 0, 95, 4
Luminance
0.7799

Every format

HEX#cff40c
RGBrgb(207, 244, 12)
HSLhsl(70, 91%, 50%)
CMYKcmyk(15%, 0%, 95%, 4%)
LABlab(90.8 -35.8 87.3)
LCHlch(90.8 94.4 112.3)
OKLCHoklch(0.908 0.215 120.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cff40c on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#cff40c on black: 16.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green95.7%
Blue4.7%

CMYK percentages

Cyan15.2%
Magenta0.0%
Yellow95.1%
Key (black)4.3%

Color previews

#cff40c text on a black background

contrast 16.60:1

Card sample

#cff40c text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cff40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cff40c in the Color Lab