Skip to content

#ffcf2f

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

RGB
255, 207, 47
HSL
46°, 100%, 59%
CMYK
0, 19, 82, 0
Luminance
0.6609

Every format

HEX#ffcf2f
RGBrgb(255, 207, 47)
HSLhsl(46, 100%, 59%)
CMYKcmyk(0%, 19%, 82%, 0%)
LABlab(85.0 2.9 78.1)
LCHlch(85.0 78.2 87.9)
OKLCHoklch(0.872 0.168 90.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow81.6%
Key (black)0.0%

Color previews

#ffcf2f text on a black background

contrast 14.22:1

Card sample

#ffcf2f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf2f in the Color Lab