Skip to content

#ffcf2c

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

RGB
255, 207, 44
HSL
46°, 100%, 59%
CMYK
0, 19, 83, 0
Luminance
0.6607

Every format

HEX#ffcf2c
RGBrgb(255, 207, 44)
HSLhsl(46, 100%, 59%)
CMYKcmyk(0%, 19%, 83%, 0%)
LABlab(85.0 2.8 78.9)
LCHlch(85.0 79.0 88.0)
OKLCHoklch(0.872 0.169 90.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow82.7%
Key (black)0.0%

Color previews

#ffcf2c text on a black background

contrast 14.21:1

Card sample

#ffcf2c text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf2c in the Color Lab