Skip to content

#ffcf02

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

RGB
255, 207, 2
HSL
49°, 100%, 50%
CMYK
0, 19, 99, 0
Luminance
0.6589

Every format

HEX#ffcf02
RGBrgb(255, 207, 2)
HSLhsl(49, 100%, 50%)
CMYKcmyk(0%, 19%, 99%, 0%)
LABlab(84.9 2.2 85.6)
LCHlch(84.9 85.6 88.6)
OKLCHoklch(0.871 0.178 91.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow99.2%
Key (black)0.0%

Color previews

#ffcf02 text on a black background

contrast 14.18:1

Card sample

#ffcf02 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf02 in the Color Lab