Skip to content

#ffcf0d

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

RGB
255, 207, 13
HSL
48°, 100%, 53%
CMYK
0, 19, 95, 0
Luminance
0.6591

Every format

HEX#ffcf0d
RGBrgb(255, 207, 13)
HSLhsl(48, 100%, 53%)
CMYKcmyk(0%, 19%, 95%, 0%)
LABlab(85.0 2.3 84.6)
LCHlch(85.0 84.6 88.5)
OKLCHoklch(0.871 0.177 91.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green81.2%
Blue5.1%

CMYK percentages

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

Color previews

#ffcf0d text on a black background

contrast 14.18:1

Card sample

#ffcf0d text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf0d in the Color Lab