Skip to content

#cecf02

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

RGB
206, 207, 2
HSL
60°, 98%, 41%
CMYK
1, 0, 99, 19
Luminance
0.5775

Every format

HEX#cecf02
RGBrgb(206, 207, 2)
HSLhsl(60, 98%, 41%)
CMYKcmyk(1%, 0%, 99%, 19%)
LABlab(80.6 -18.8 80.5)
LCHlch(80.6 82.6 103.2)
OKLCHoklch(0.826 0.180 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cecf02 on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cecf02 on black: 12.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green81.2%
Blue0.8%

CMYK percentages

Cyan0.5%
Magenta0.0%
Yellow99.0%
Key (black)18.8%

Color previews

#cecf02 text on a black background

contrast 12.55:1

Card sample

#cecf02 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cecf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cecf02 in the Color Lab