Skip to content

#ffcf45

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

RGB
255, 207, 69
HSL
45°, 100%, 64%
CMYK
0, 19, 73, 0
Luminance
0.6632

Every format

HEX#ffcf45
RGBrgb(255, 207, 69)
HSLhsl(45, 100%, 64%)
CMYKcmyk(0%, 19%, 73%, 0%)
LABlab(85.2 3.6 71.1)
LCHlch(85.2 71.2 87.1)
OKLCHoklch(0.874 0.157 88.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue27.1%

CMYK percentages

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

Color previews

#ffcf45 text on a black background

contrast 14.26:1

Card sample

#ffcf45 text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf45 in the Color Lab