Skip to content

#ffcf1f

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

RGB
255, 207, 31
HSL
47°, 100%, 56%
CMYK
0, 19, 88, 0
Luminance
0.6598

Every format

HEX#ffcf1f
RGBrgb(255, 207, 31)
HSLhsl(47, 100%, 56%)
CMYKcmyk(0%, 19%, 88%, 0%)
LABlab(85.0 2.5 81.9)
LCHlch(85.0 82.0 88.3)
OKLCHoklch(0.872 0.173 91.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow87.8%
Key (black)0.0%

Color previews

#ffcf1f text on a black background

contrast 14.20:1

Card sample

#ffcf1f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf1f in the Color Lab