Skip to content

#ffcf3b

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

RGB
255, 207, 59
HSL
45°, 100%, 62%
CMYK
0, 19, 77, 0
Luminance
0.6620

Every format

HEX#ffcf3b
RGBrgb(255, 207, 59)
HSLhsl(45, 100%, 62%)
CMYKcmyk(0%, 19%, 77%, 0%)
LABlab(85.1 3.3 74.5)
LCHlch(85.1 74.6 87.5)
OKLCHoklch(0.873 0.162 89.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcf3b on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#ffcf3b on black: 14.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green81.2%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow76.9%
Key (black)0.0%

Color previews

#ffcf3b text on a black background

contrast 14.24:1

Card sample

#ffcf3b text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf3b in the Color Lab